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. Cheers Delian --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]