Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Difference between EJBs and Web Services

800558Feb 7 2009 — edited Feb 8 2009
Hello All,
Am trying to understand the basic difference between EJB and Webservices. After doing some reading, my understating is if using EJB my application gets the session management, data integrity and all services provided by the ejb container, and i can just concentrate on my business logic. But with Web services i may have to code the required services along with the business logic ?
The reason am asking this is because currently we have Fat client an Applet which makes EJB calls on the server, but the EJB client transferred with the applet had some conflict with desktop JRE, (as it needed the IBM jre for use). But it was resolved later with some tweaks in Sun jre.
So one of the seniors developer suggested me(rather asked me) why my team didnt opt for a web service (/ REST services) which will eliminate the problem of the EJB client from client machine. Me being, naive in both technologies had no answer, so am just trying to find the reasoning behind using EJB in my application and not web services.

My app. is a distributed banking application with a lot of DB calls on the server from many client at the same time.
Please shed some light on my query, i hope my description for the application is suffice to put my thoughts across.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 8 2009
Added on Feb 7 2009
4 comments
3,447 views