Hi,
Is Tomcat is enough to handle the EJB. Or I need other servers as well
like JBOSS, Weblogic,
Tarun Garg
Dirk Höpfner - 17 May 2006 07:03 GMT
Garg schrieb:
> Hi,
>
> Is Tomcat is enough to handle the EJB. Or I need other servers as well
> like JBOSS, Weblogic,
>
> Tarun Garg
Tomcat is "only" a web-container and can handle JSPs, Servelets. You
need additional ejb-container like WebSphere, Geronimo (OpenSource one)
and you right suggest JBoss, Weblogic.(Most of them use Tomcat)
These full application servers need normaly a addition database with
2 phase transaction control.
Cheers Dirk
Garg - 17 May 2006 07:30 GMT
As you are saying that JBoss, weblogic use Tomcat. So for the intiall
configuration I require the Eclipse, Tomcat(any version), JRE and JBoss
or Weblogic. Right.
Tarun Garg
John Gagon - 17 May 2006 07:46 GMT
> Hi,
>
> Is Tomcat is enough to handle the EJB. Or I need other servers as well
> like JBOSS, Weblogic,
>
> Tarun Garg
While the web.xml (specified in the specs for servlets) descriptor
(used by Tomcat) can contain information about EJBs (ie: JNDI info), it
doesn't handle them...that is to say, it doesn't object pool them, ie:
bring them to life when needed and allow services with them. The java
in tomcat can connect to over network port (locally or not) or be
embedded in an EJB container.
JBoss or WebLogic or any other "fully compliant" or "EJB" server would
do that. I believe there is a matrix of application servers out there
that would give you details about which app servers handle EJBs.
Sun's java site has some good tutorials and they too have a "reference
implementation" of an EJB container. (or they used to)
John Gagon
Garg - 17 May 2006 09:46 GMT
So, JBoss and WebLogic is not at all required for practice purpose.
But through Tomcat and Eclipse how can we deploy the application.
Tarun Garg
John Gagon - 17 May 2006 10:00 GMT
> So, JBoss and WebLogic is not at all required for practice purpose.
> But through Tomcat and Eclipse how can we deploy the application.
There are other brands besides JBoss or Weblogic. You would need them
if that is all you have access to/can't pay for the licenses of the
other products. There are several free containers out there. JoNAS is
another free container. There are others out there as well. It just
takes searching them. JBoss is very well known however and so if you
are going to experiment, I'd recommend learning on JBoss and then
finding the best server that suits you in terms of features after you
decide what you will be doing with the application server and its EJBs.
Eclipse can embed JBoss or deploy to it via JBoss IDE Eclipse plugin
(IIRC)...(you can download it from the jboss web site).
Tomcat is a web server as others mentions. It can do JSPs and Servlets
(which is often sufficient) but for EJBs, you want an EJB "Container"
(like JBoss or Weblogic or something else like Websphere or iPlanet etc
etc.).
Tomcat has a manager app which can be used for deployment. Jboss also
comes with a manager application that can deploy modules as well.
Weblogic has a very nice facility for deployment via a web page on a
particular port. So it can all be done in a browser or an ant script
can be run from Eclipse (or outside Eclipse). I mean, there must be
thousands of ways to deploy but I've already suggested some very common
ways. You can search more about that and play with it on your own. It's
the best way to understand it. In particular read everything on the
jboss web site that you can and also on jakarta.apache.org 's Tomcat
project. ie: all the documentation is right there.
HTH,
John Gagon
Garg - 17 May 2006 10:17 GMT
So, JBoss and WebLogic is not at all required for practice purpose.
But through Tomcat and Eclipse how can we deploy the application.
Tarun Garg
David Segall - 17 May 2006 16:56 GMT
>Hi,
>
>Is Tomcat is enough to handle the EJB. Or I need other servers as well
>like JBOSS, Weblogic,
>
>Tarun Garg
Sun have a list of certified servers here
<http://java.sun.com/j2ee/compatibility.html>. Tomcat is only part of
Geronimo; it is not a complete Java Application Server.