On 07/12/2011 15:43, EmotionalStabilitySlave wrote:
> Thanks for your reply.
>=20
> Please see my comment.
>=20
>=20
> 2011-12-07=20
>=20
>=20
>=20
> EmotionalStabilitySlave=20
>=20
>=20
>=20
> =E5=8F=91=E4=BB=B6=E4=BA=BA=EF=BC=9A Pid *=20
> =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4=EF=BC=9A 2011-12-07 21:50:19=20
> =E6=94=B6=E4=BB=B6=E4=BA=BA=EF=BC=9A Tomcat Users List=20
> =E6=8A=84=E9=80=81=EF=BC=9A=20
> =E4=B8=BB=E9=A2=98=EF=BC=9A Re: How many object of the Web Service clas=
s will be created?=20
> =20
> 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?
>=20
> Windows 7 jdk-6u21-windows-i586 tomcat 6.0
>=20
>> But I want to know how many objects of the my Web service class will b=
e
>> created.
> Why?
>=20
> In my web service, one object will create one network connection, so =
I need to know how many network connections will exists.
> I guess that if last web service calling is not return, the tomcat=
will create a new web service object?
Network connection to what?
p
>> 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 serv=
ice
>> class will be deleted?
>>
>> I use the statement "Runtime.getRuntime().addShutdownHook(new Thread=
()
>> ***)
> Err, why?
>=20
> I need know when the network connection will be close.
>> 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
--=20
[key:62590808]
|