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
|