Xtremebytes Webmaster wrote:
I am wondering how I can run the Tomcat JSP/Servlet container within
another process, which is not a HTTP server but a custom Java
application. This is to mean that I have some JSP or Servlets for
example. I need to run them on a client machine (Windows NT/UNIX
platform), which doesn't have a web server or the standalone Tomcat
container installed. I do not want to install that either. I just
want to launch the Tomcat container as one thread within one custom
Java application while some other threads will do other unrelated
work. The purpose is to deploy the Servlets or JSP making the Tomcat
container transparent to the client.

You can look at the Tomcat 5 embedded distribution (basically, you get an Ant script replacing server.xml). The included example Ant script just makes some basic JMX calls to create an embedded Tomcat, so you don't have to use Ant (but, for an example, it's obviously easier to understand and more readable) or have any dependencies on the Tomcat APIs.


The old Tomcat 4.x Embedded class is also supported (except it has been rewritten to use the standard behavior rather than being a special case).

I believe some real docs on embedding would be useful, including:
- embedding Coyote
- embedding Tomcat using Embedded
- embedding Tomcat with JMX

Remy


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to