tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Embedding Tomcat in a standalone JAR
Date Wed, 03 Jan 2007 01:31:53 GMT
Joe-

what/which tasks do you want this embedded tomcat to accomplish?

M-
--------------------------------------------------------------------------- 
This e-mail message (including attachments, if any) is intended for the use of the individual
or entity to which it is addressed and may contain information that is privileged, proprietary
, confidential and exempt from disclosure. If you are not the intended recipient, you are
notified that any dissemination, distribution or copying of this communication is strictly
prohibited.
--------------------------------------------------------------------------- 
Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant)
s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé
ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il
est strictement interdit de le diffuser, de le distribuer ou de le reproduire.
----- Original Message ----- 
From: "Caldarale, Charles R" <Chuck.Caldarale@unisys.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Tuesday, January 02, 2007 8:04 PM
Subject: RE: Embedding Tomcat in a standalone JAR


> 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