Search code examples
javaejbejb-3.0application-server

Does EJB container reside in all application servers. EJB container in depth


I am newbie to EJB's. From all the reading and searching I have done till now, I understood the following:

  • EJB are the beans in which an applications business logic is written and maintained.
  • All EJB's are put into something called EJB container.
  • EJB container is nothing but a server side program written in order to manage EJB's, and to provide basic functionalities which are meant to be provided by EJB(viz, transaction management, security, collision free envt, etc).

1) My doubt is, does the so called EJB component reside in all application servers?

2) When we say EJB 2.1/3.0/3.1, does it mean that the new version of EJB container has been released?

3) Does the EJB container reside in web servers too?

Thank you.


Solution

  • To answer your questions

    1. Generally yes. Application server is generally referred to a server with has EJB container like Glassfish, Jboss etc. But you need make sure that the application server has EJB support.

    2. YES

    3. NO. Web servers or Web containers (Tomcat, Jetty etc ) serve a different purpose than EJB container. But all the application servers do have web servers (along with EJB containers. ).

    The EJB container and web container (servers) server are different layers in a Java EE application scenario . Check this link for more info.