What does this mean(EJB VS Webservices)

Posted on 2006-03-30
Medium Priority
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
  • 3
LVL 30

Expert Comment

by:Mayank S
ID: 16339521
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

Mayank S earned 200 total points
ID: 16358958
LVL 30

Expert Comment

by:Mayank S
ID: 16498957
Glad to help, but any reason for a B? You can ask for more clarification if you want.

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
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.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses
Course of the Month14 days, 23 hours left to enroll

840 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