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!

Web Container & EJB Container same JVM or diff JVM

843830Apr 12 2008 — edited Apr 14 2008
Hello folks,

If a J2EE app server, has a web container and ejb container, will both be using same single JVM or will each container get its own JVM ??.

Will all the applications deployed in a application server, be running in single JVM??.

If I deploy an EAR file (containing a war and ejb jar file) and an WAR file(only web app) in any J2EE application server deploy directory, I think both of them use the same JVM. Am I wrong?. Will each container get its own jvm??

Case1: Can a servlet from WAR file invoke a business method on a session bean in ejb.jar file packaged in an EAR file?. Will there be a serialization issue, if the web application passes objects as arguments to method calls on ejb in EAR file?.

Thanks
JY
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2008
Added on Apr 12 2008
1 comment
860 views