tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pid *" <...@pidster.com>
Subject Re: How many object of the Web Service class will be created?
Date Wed, 07 Dec 2011 13:49:42 GMT
On 7 Dec 2011, at 10:17, emotional stability
<emotionalstabilityslave@gmail.com> wrote:

> I create one web service  and deploying on the tomcat with axis2.

Exact OS, Java, Tomcat versions?


> But I want to know how many objects of the my Web service class will be
> created.

Why?


> When  the the web service is called from outside firstly,  the object of my
> web service class is created?     When will this object of my web service
> class will be deleted?
>
> I use the statement  "Runtime.getRuntime().addShutdownHook(new  Thread()
> ***)

Err, why?


> to delete this object    but  I want to know when this addShutdownHook
> statement  will be called

Same as all shutdown hooks: when the JVM stops running - in this case,
Tomcat shutdown.


p

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message