0

Java EE application servers like JBoss has both EJB container as well as servlet/web container (assuming my application has both servlets as well as EJBs).

Whenever we talk about application server we always use containers to logically identify the component. I have this doubt-

Is there any corresponds with JVM instances as well ? EJB container and Servlet container share same JVM instance or they have their own ?

1 Answer 1

2

Yes, EJB and Servlet containers share the same JVM instance, but works in different threads.

Sign up to request clarification or add additional context in comments.

2 Comments

Of more interest is that each deployment unit executes in it's own class loader
In common case answer will be "yes". But in real world many variants exists. For example, weblogic use several classloaders under deployment of one unit link You can (or can not) config preferences of classes loading procedure. But if you has complicated application, class loading will be headache for you.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.