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 / General / November 2006

Tip: Looking for answers? Try searching our database.

J2EE : EJB terminologies

Thread view: 
Doug - 07 Nov 2006 20:05 GMT
Hello,
I have a hard time understanding several terminologies in j2ee,
especially with EJB.
I know EJB is spec to transfer objects across JVM. And EJB always
associates with RMI. And RMI always goes with JDNI.
Could somebody explain in plain english what those technologies related
to each other?

Thanks a lot. My head hurts with this j2ee stack!!!
Manish Pandit - 07 Nov 2006 22:09 GMT
> Hello,
> I have a hard time understanding several terminologies in j2ee,
[quoted text clipped - 5 lines]
>
> Thanks a lot. My head hurts with this j2ee stack!!!

Hope I do not screw something up while oversimplifying it :)

RMI is Java's answer to object based distributed computing. It is a
binary protocol (JRMP - to add to the terminology - Java Remote Method
Protocol) to access remote objects. It is very similar to CORBA/IDL
methodology. RMI uses rmiregistry as the "factory" to instantiate
remote objects. However, this was a plain vanilla implementation, with
no support (out of the box) for remote object lifecycle management,
security, transaction management, etc. Then came EJBs as overloaded
"RMI" objects, which provide a lot more features out of the box than
you could have on your own using remote objects. EJBs use RMI over
IIOP, which enables an EJB to be accessed by CORBA based clients (I
could be wrong on this one!). JNDI is a lookup service that the clients
can use to look up remote objects, and the providers can use to
register their objects. RMI does not need a container maintaing its
lifecycle, while EJBs can only survive in an EJB container, or a J2EE
server. Under the hood, EJBs use more or less same terminology as RMI
(Remote Interface, Implementation, Stubs, Skeletons, Remote Exceptions)
but from a server standpoint, they are a lot different.

-cheers,
Manish
Arne Vajhøj - 08 Nov 2006 01:33 GMT
> I have a hard time understanding several terminologies in j2ee,
> especially with EJB.
> I know EJB is spec to transfer objects across JVM. And EJB always
> associates with RMI. And RMI always goes with JDNI.
> Could somebody explain in plain english what those technologies related
> to each other?

RMI is a Java client/server technology for standalone
server apps.

EJB's are business components inside a container.

How much EJB calls are reusing from RMI calls is not
something you shoudl worry about.

JNDI is an API for directory services. And it is
used to lookup EJB's (or at least their home interfaces).

Arne


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.