You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tomás Tormo <tt...@indenova.com> on 2007/11/27 14:06:08 UTC

Re: *SPAM* Re: How to initialize variables when tomcat load a webservice?

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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>   
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org