Web Container & EJB Container same JVM or diff JVM
843830Apr 12 2008 — edited Apr 14 2008Hello 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