Servlet Container

Discussions

General J2EE: Servlet Container

  1. Servlet Container (1 messages)

    Hi,
    When we say Servlet Container and EJB container with in a server does it means servlet and EJBs run under different JVMs. Is there any way in which we can verify that whether they are running in same jvm or different jvms.

    Thanks,
    Badrish

    Threaded Messages (1)

  2. Response[ Go to top ]

    Badrish,

    If EJBs and Servlets are run on the same server instance, they're in the same JVM, of course (which is, actually, a JVM which runs the server itself), but note that your EJBs and your servlets might be probably loaded by different classloaders (it depends on your application server, your deployment options and on the classloading strategy setup).

    Alex