jQuery in Action, 3rd edition
The moose likes Tomcat and the fly likes Tomcat and EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat and EJB" Watch "Tomcat and EJB" New topic

Tomcat and EJB

Hanna Habashy
Ranch Hand

Joined: Aug 20, 2003
Posts: 532
Does Tomcat server come with an EJB container? If not, is there any other free J2EE server that support EJB?

SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Venkatraman Kandaswamy
Ranch Hand

Joined: Jul 07, 2004
Posts: 120

Try JBoss
Max Tomlinson
Ranch Hand

Joined: Jul 17, 2001
Posts: 365
Actually, I have heard there are plans for Tomcat to support EJB.
perhaps the authors can comment?
Aodhan Hoffman
Ranch Hand

Joined: May 21, 2004
Posts: 35

What is the difference between JavaBeans and EnterpriseJavaBeans. According to previous post, Tomcat does not support EJB, but it does support JB? What is the difference?

-------<br /> Aodhan H - Ad Astra Per Aspera<br /> -------
Angel Dobbs-Sciortino
Ranch Hand

Joined: Sep 10, 2003
Posts: 101
JavaBeans are pretty much just java objects with get and set methods and a blank constructor. They are accessed only within the scope of the web server. They can be saved in and retrieved from attributes in a given scope, such as the context, session, request, and page. Tomcat supports JavaBeans.

EJB's are objects that require several files for each object to facilitate being shared between two or more computers. Tomcat does not support this at the moment, but JBoss does. JBoss includes Tomcat.
Andy Bowes
Ranch Hand

Joined: Jan 14, 2003
Posts: 171

As stated above Tomcat does not support EJBs (some might actually say that this is a major benefit ) and it is unlikely to be extended to support them.

There is another project in the Apache portfolio that is being developed to be an open source EJB platform. For more info see Apache Geronimo Home Page. This is still in a relatively early incarnation but it could become a bit of competition for jBoss.

Andy Bowes<br />SCJP, SCWCD<br />I like deadlines, I love the whoosing noise they make as they go flying past - Douglas Adams
Albert Nunes

Joined: Mar 22, 2004
Posts: 11
There are many ejb containers.

Oracle application server.
IBM Websphere.
BEA Weblogic.
JBoss Application Server.
Borland Enterprise Server.
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Tomcat does not support EJB but you can call ejb from another Application SErver such as JBoss, J2EERI .. etc ..

I think, In the future, Tomcat will support EJB ..

Java Developer, Thailand
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
Application Server Matrix at TSS ::

satheesh krishnaswamy
Ranch Hand

Joined: Mar 17, 2004
Posts: 137

Tomcat at present will not support EJB.EJB's could be run only on a J2EE server (Application server) and Tomcat is not an Application server.

use can use Jboss,which can be downloaded free of cost.The latest version is Jboss 3.2.5.But sun has tested some servers and had given in their site about their performance.Sun one Server plays important role which also free and also tested.

Some servers are not tested by Sun Micro Systems.So dont rely on that.

If you wish to pay and use Bea Weblogic and IBM Websphere etc.. are really good.
With kind regards

Regards,<br /> <br />Satheesh.K<br />-------------<br />SCJP 1.4<br />SCWCD 1.4
friso dejonge
Ranch Hand

Joined: Jul 11, 2002
Posts: 162
it should not be the question which ejb-container you should use, but maybe the question should be whether to use ejb's at all.
You could bypass it all by using hibernate for persistency.
A few weeks ago there was a give away on that book and it seemed mighty interesting. Ejb's as we know them are not worth the effort

swimming certificate (A & B), shoelaces diploma, and some useless java ones.
I agree. Here's the link: http://aspose.com/file-tools
subject: Tomcat and EJB
jQuery in Action, 3rd edition