Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / September 2003

Tip: Looking for answers? Try searching our database.

Main differences EJB <-> WebService

Thread view: 
Mr. x - 18 Sep 2003 11:45 GMT
Hello,
What are the main differences between EJB and WebService ?

Thanks :)
Dag Sunde - 18 Sep 2003 12:46 GMT
> Hello,
> What are the main differences between EJB and WebService ?

The only thing they have in common, as far as I can see, is that they
are used by clients to execute code remotely.

Two completely different, and unrelated technologies.

A webservice is RPC, using SOAP as a comm. protocol.
A WS can be written in any language imaginable.

Whereas an EJB is a Java-class written according to a specific
design-pattern, and is completely dependent upon an application
server like BEA, Websphere, JBoss, etc. to contain it.

It's a way too large a subject to describe here (for me, anyway)

:-)

--
Dag.
Christopher Blunck - 25 Sep 2003 04:52 GMT
>> Hello,
>> What are the main differences between EJB and WebService ?
[quoted text clipped - 12 lines]
>
> It's a way too large a subject to describe here (for me, anyway)

EJB is a framework that enables distributed Java client to Java server
connectivity.  The EJB framework handles concurrency, and ensures data
integrity at the object level.  

WebServices is a framework that enables cross-platform and cross-language
connectivity between functional programming units.  In other words,
WebServices is a superset of EJB.  A webservice may wrap an EJB, but
rarely does an EJB wrap a web service.

When you think of Web Services, think of functional pieces of programming.
For example, consider somebody (like myself) who has implemented several
meteorological conversion functions.  I have implemented a celsius ->
fahrenhight converter as well as a millibar -> inches of mercury
converter.  These are atomic functions that are reusable outside the scope
of my application.  I may wish to expose them to other developers in my
workplace as web services.

When thinking of EJB, think of functional pieces of software that apply to
the business.  For example, consider a data warehouse that exposes
critical entities in your organization (like Customer).  You only want the
Customer be accessed internally, so you expose the Customer through a J2EE
interface only accessible by internal servers.  The Customer is not
intended to be accessed globally.

This is perhaps a poor example, but I'm hoping it will fuel the fire that
will ignite someone else to post/cross-post a better explanation.

-c
Jerome Chan - 19 Sep 2003 21:26 GMT
> Hello,
> What are the main differences between EJB and WebService ?
>
> Thanks :)

You can also use EJB to implement a WebService. :P


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.