Excerpt from the a Discussion Forum   edit P.Komisar

at the Sun Microsystems web site


"CORBA (or RMI) is definitely faster for simple OO-RPC than EJB. In fact, EJB is built on top of
RMI (which may in turn be running on top of CORBA's IIOP.) So EJB could NOT be faster than
CORBA/RMI and only could hope to approach the speed thereof.

Here's the question you need to ask: What is the right solution for the problem that I am trying
to solve? If you just need remote method invocation, use Java RMI. If you need remote method
invocation between/among hosts/programs that are not all Java, use CORBA (or RMI over
IIOP). If you are trying to build business logic objects in Java to deploy to an application
server, use EJB. If you need transactions, use EJB (or possibly CORBA with OTS.) If you are
doing a lot of work with persistent ("back end") data, consider the benefits of Entity EJBs. If
you need to scale the back end, use EJB (or CORBA with a scalable ORB implementation.) "

Cameron Purdy LiveWater