Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Container question  RSS feed

 
Rahul Sud
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • 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
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
Prateek Parekh
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!