Delian Krustev wrote:
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]


Thank you!!!

Yes, it's enough for searching. Well, it is a general question about java web programming, but i didn't know if i could apply this to tomcat environment, and i didn't find anything useful on the web... With this is enough to start :)

Thank you again!!

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

Reply via email to