tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lacerda, Wellington (AFIS)" <Wellington.Lace...@fao.org>
Subject RE: How to start Tomcat from an Application?
Date Thu, 14 Sep 2000 08:49:59 GMT
Take a look on EmbeddedTomcat in /src:

/**
 *  Use this class to embed tomcat in your application.
 *  The order is important:
 *  1. set properties like workDir and debug
 *  2. add all interceptors including your application-specific
 *  3. add the endpoints 
 *  4. add at least the root context ( you can add more if you want )
 *  5. call start(). The web service will be operational.
 *  6. You can add/remove contexts
 *  7. stop().
 *  
 *  You can add more contexts after start, but interceptors and  
 *  endpoints must be set before the first context and root must be
 *  set before start().
 *
 *  All file paths _must_ be absolute. ( right now if the path is relative
it
 *  will be made absolute using tomcat.home as base. This behavior is very
 *  "expensive" as code complexity and will be deprecated ).
 * 
 * @author costin@eng.sun.com
 */

I never did it but I'm about to.

Wellington Silva
UN/FAO

		-----Original Message-----
		From:	Michael P. McCutcheon [mailto:michaelm@value.net]
		Sent:	Thursday, September 14, 2000 4:50 AM
		To:	tomcat-user@jakarta.apache.org
		Subject:	How to start Tomcat from an Application?

		Can anyone share the code that will start Tomcat 3.2b4 from
within a Java
		Application?



		--
		Michael P. McCutcheon
		http://pwp.value.net/michaelm
		

Mime
View raw message