Originally posted by faisal mahmood:
Simple answers probably would be:
* EJB is only available in Java language and so it is platform independant
* CORBA is language independant and that makes it platform independant as well
If you are after high performance CORBA with C++ would be a better choice than EJBs. For ease of design and programming EJBs are better choice.
CORBA application written for one ORB vendor most likely would not work with another ORB vendor. But, any J2EE complaint application can be put in any J2EE certified containers with out any problem at all. Deployment is a lot easier for J2EE application (including EJBs) than CORBA application.
If you need to integrate with existing systems which does not support Java then CORBA would be a better choice. Since both CORBA and EJBs both can use IIOP protocol, they can co-work together with clients.
Originally posted by ZEESHAN AZIZ:
I wondered how EJB compared with SOAP. Is soap meant to achieve the same functionality, achieved by EJB?