-
-
2. Integrating tomcat and jboss
richardbabu Apr 2, 2002 4:32 AM (in response to richardbabu)Can anyone guide me on integrating a existing tomcat and jboss
-
3. Re: Integrating tomcat and jboss
jasonlee9 Apr 2, 2002 11:53 PM (in response to richardbabu)richard,
there are a few things you might look at. i haven't actually gotten tomcat 4.0.3 to integrate the way i want to, but am almost there.
one thing to look at is the /path/to/jboss/deploy/tomcat4-service.sar file. this file is basically a jar (renamed sar) that has config files necessary for embedding tomcat.
In the sar file under the META-INF dir there is a jboss-service.xml file. If you open that file you will notice that there is a <ENTITY catalina.home "some/tomcat/dir"> entry. I have changed this entry to point to where my actual tomcat exists and got everything to start up.
That's only part of it tho. Once this is done and you want to be able to use a web app under the embedded tomcat you need to either provide a jar file or a ear file. The url for the ear deployment is here: http://main.jboss.org/thread.jsp?forum=61&thread=7537
And a thread for using a war file is here: http://main.jboss.org/thread.jsp?forum=61&thread=11816
I wish I could say there was another way, but this is what I've found from reading and trial and error. It is possible, and I've done it, to have your build script build your ejb's, web app, roll them into an ear and deploy them properly in jboss. However, this isn't the best solution for making frequent changes - which I do. So I'm still looking on this one. -
4. Re: Integrating tomcat and jboss
richardbabu Apr 3, 2002 4:18 AM (in response to richardbabu)Jason ,
A wonderful explanation .I am beginning to understand now
Thankz
Richard -
5. Re: Integrating tomcat and jboss
rgupta12 Dec 2, 2002 1:43 PM (in response to richardbabu)how does tomcat-users.xml work with jboss3.0?