tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Delian Krustev <>
Subject Re: How to initialize variables when tomcat load a webservice?
Date Tue, 27 Nov 2007 13:01:46 GMT
On Tue, 27 Nov 2007 13:18:47 +0100 Tomás Tormo wrote:
>     I'm developing a webservice wich has to initialize some variables
> when it is loaded by tomcat (just because otherwise it is too slow). Can
> this be done? Has the client to initialize the class by means of the
> constructor or is tomcat the one that will initialize it?

You need to define a listener and handle the context initialized event.

This should give you enough tips for searching :-)

P.S. this looks like a general java web apps programming question, not a 
tomcat one.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message