Red Hat Application Server: JOnAS User Guide | ||
---|---|---|
Prev | Chapter 31. Integrating Tomcat and JOnAS (for JOnAS version < JOnAS 2.6) | Next |
As of JOnAS 2.4.4, a new JOnAS service tomcat is provided for launching a servlet container Tomcat inside the JOnAS JVM. As of JOnAS 2.5, two implementations of this service are provided: one for Tomcat 3.3.x and another for Tomcat 4.0.x. All you have to do is to add tomcat to the jonas.services property of the jonas.properties file and set the jonas.service.tomcat.class property of the jonas.properties file to:
org.objectweb.jonas.tomcat.EmbeddedTomcatImpl33 for Tomcat 3.3.x (this is the default value)
org.objectweb.jonas.tomcat.EmbeddedTomcatImpl40 for Tomcat 4.0.x
Note that if you want to run the servlet container and the EJB container in separate JVMs, you can run two instances of the JOnAS server, one with only the tomcat service, and another with all services but tomcat.