• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Container question

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Techies,


I want to know about Container means?Is it Server or some container or some class in Java or J2EE.
In Java there is one class Container and related to GUI functionality.But when we talk about EJB.There also a point like In EJB developer has to concentrate on Business logic rest (Low level management) done by Container.Here Container is inside the server which handles all these.Similarly Spring has its container.Also Apache has container Tomcat.Also Tomcat is a server.Really confusing...


Please elaborate me about Container in Java and J2EE because i am confused with this term.




Thanks


Regards,
Rahul
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rahul,
When people say container in this context, they don't mean a class. They mean a software component that provides services. For example a web or ejb container.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apache has an HTTP web server. It is very popular for languages like PHP.

But, the Container that you are probably referring to is Apache Tomcat which is different in the sense that it understands how to process JSP/Servlets. You also need the jar file (servlet-api.jar) that contains the classes and interfaces required for JSP/Servlet development.
Tomcat provides you with additional services like Threading, Security, servlet life cycle, logging, etc

Finally, there is J2EE Server that you use for your EJB deployment. Glassfish server is an example. It also provides additional EJB specific services including Transaction Management, Life cycle management, etc.
 
reply
    Bookmark Topic Watch Topic
  • New Topic