tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Elliott <elli...@mail.cibertribe.pt>
Subject Re: How to start Tomcat from an Application?
Date Thu, 14 Sep 2000 12:05:38 GMT
Anybody know if EmbededTomcat will work in Visual Age for Tomcat 3.2?

tfth

Steven Elliott           <elliott@mail.cibertribe.pt>
Systems Integrator
Interactive Tecnologia, Lda.
Lisbon    Portugal

tel: +351 21 440 8090
fax: +351 21 441 7242
-- 




on 14/09/00 9:49, Lacerda, Wellington (AFIS) at Wellington.Lacerda@fao.org
wrote:

> 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