Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5AC937B4E for ; Wed, 7 Dec 2011 17:23:37 +0000 (UTC) Received: (qmail 22623 invoked by uid 500); 7 Dec 2011 17:23:33 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 22550 invoked by uid 500); 7 Dec 2011 17:23:33 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 22541 invoked by uid 99); 7 Dec 2011 17:23:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 17:23:33 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pid@pidster.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bw0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Dec 2011 17:23:25 +0000 Received: by bkaq10 with SMTP id q10so913190bka.18 for ; Wed, 07 Dec 2011 09:23:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pidster.com; s=google; h=message-id:date:from:reply-to:organization:user-agent:mime-version :to:subject:references:in-reply-to:x-enigmail-version:openpgp :content-type; bh=y+EceEh9nxl4qGGmJsQ13oE1YFVUKZXKeVY07nfgp0c=; b=gsizLJ8YsWY7a7FlCmTUhluYLcbD9yCrTn+IJknrNkhsQrqTsnXmh/HYMqNy9ulhrJ Y7a0KC0ii9RiAO/Itf50CIYpnq2rlPkN1SGA9P2Z2GtNCk3QXUM5azFV+gPl5UNG3Lx9 uLYDMaAHxJciKdbACqG1OjgyvBxng89iKHKtA= Received: by 10.180.80.162 with SMTP id s2mr24871542wix.27.1323278584619; Wed, 07 Dec 2011 09:23:04 -0800 (PST) Received: from Asura.local (cpc10-lewi14-2-0-cust355.2-4.cable.virginmedia.com. [82.4.249.100]) by mx.google.com with ESMTPS id ca18sm3859470wib.13.2011.12.07.09.23.02 (version=SSLv3 cipher=OTHER); Wed, 07 Dec 2011 09:23:03 -0800 (PST) Message-ID: <4EDFA0F4.7070402@pidster.com> Date: Wed, 07 Dec 2011 17:23:00 +0000 From: Pid Reply-To: pid@pidster.com Organization: Pidster Inc User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: How many object of the Web Service class will be created? References: <201112072343115526513@gmail.com> In-Reply-To: <201112072343115526513@gmail.com> X-Enigmail-Version: 1.3.3 OpenPGP: id=62590808 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig95DF5DF6FFDD157591CB1409" X-Virus-Checked: Checked by ClamAV on apache.org --------------enig95DF5DF6FFDD157591CB1409 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 > 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] --------------enig95DF5DF6FFDD157591CB1409 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBCgAGBQJO36D5AAoJEGoM2OGpOvr9/RQQAJG6obpkySwLyq/Ay7X6K9oK 3j/0Lioomc17XNXDQDRfnatPQT+UHrBRlkic1Hcg7sOr3eoVCDsF+hL+kqB/ElNW mkCKJtnx0w7tFsOWeyc/Q+HK9SSIyLFgwXvRt9NVjyhHpKE3mJzK+VV/nTT0Aio/ ui3LbXGK/FLq6oP6XzNngxpbrEzJjiRe4NrSdRrOhmMLzkNHj0Pe3wnq625l7a4X bbfGxzBLaaDWtJA880DsgOBd8/7YqhXmmXffnkNsQwiKjkfBpZfZhGHHgSU/FtFS W4mBFeyulEDaSgWqJC1Qe45+J4iLuRe2IGK8pZ+c4BF+h+SNLV4J7WC1z8qluvjs X2l0jYeydjUQKx7KU18BMNpCUIoXyoIENCHryYMvfWoENdE1uBdun6AQ7pHlpGL5 L0g4JpmpZwlrCLSN6KUmknxRvR6WPpMfq9vAG1cBwl+P9mrPOQmKTuLqTsHyjeXg lbbP8GRJd5PIIPi+5Jgbobq1F7OzREqVJ2VJs82vpbDlT2f+oBdlbdyqNadfuObY P4kaSzMy95XcaVQHj6/VEw+WNSt1F0cIiTfIezdSR1ktL6ywkUeGoZqV7mJ/m5mC ZwjkyAQZOpa8B94Oct0kHbzYyBWKwlu2QXmhHqzu6ZtPpHzBKFu6WVPSWlqkQNva ii1AfhhATq4pvDOPzphW =zyCd -----END PGP SIGNATURE----- --------------enig95DF5DF6FFDD157591CB1409--