tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Embedding Tomcat in a standalone JAR
Date Wed, 03 Jan 2007 01:04:48 GMT
> From: Vacuum Joe [mailto:vacuumjoe@yahoo.com] 
> Subject: Re: Embedding Tomcat in a standalone JAR
> 
> Right, those are two of the places I looked at, including the 
> source for Catalina.java, and they weren't helpful.  They are 
> all about specifying files on the filesystem.

There has to be some relation to the file system, since the servlet spec
requires that the container provide working space for the webapps.  I
think if you started with Catalina.java and replaced the relatively
little File-related logic with getResourceAsStream() equivalents, you
could put a server.xml inside your jar and have it provide most of the
necessary config, other than the listen and shutdown ports.  Those you
get from a simple GUI, as you originally intended.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message