What does this mean(EJB VS Webservices)

Posted on 2006-03-30
Last Modified: 2013-11-24
Component architecture enhances reusability at a finer grain level.

SOA(Service oriented architecture) can enhance reusability at a Coarser grained level.
Question by:rmvprasad
    LVL 30

    Expert Comment

    EJBs and web-services are two different things, meant to solve 2 different purposes.

    An EJB is like a remote and reusable Java component, which is available to clients and to which clients can make calls for executing some business-logic and receive the response. However, it internally uses RMI and that requires the client to be a Java client. It requires an EJB container to run.

    Web services can be developed using any language (Java, .NET, etc) and can be called from any client (Java, .NET, etc) because they use HTTP and SOAP standards and are deployed on web-servers (just like you can have a browser developed in any language deployed on any platform talking to a web-site developed using any technology). So they are like services available on the Web which can be used. They are generally used as means of doing interop between different kinds of technologies. Microsoft has come up with a concept of WSE where you can deploy a web-service without having a web-server but essentially that would require you to install WSE (which will do what a web-server would do - implement SOAP and HTTP protocols for handling web-requests and send web-responses).
    LVL 30

    Accepted Solution

    LVL 30

    Expert Comment

    Glad to help, but any reason for a B? You can ask for more clarification if you want.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    This video teaches viewers about errors in exception handling.
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now