Return-Path: Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: (qmail 75753 invoked from network); 23 Jan 2011 12:12:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jan 2011 12:12:25 -0000 Received: (qmail 64548 invoked by uid 500); 23 Jan 2011 12:12:23 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 64093 invoked by uid 500); 23 Jan 2011 12:12:20 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 64085 invoked by uid 99); 23 Jan 2011 12:12:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Jan 2011 12:12:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.91.248] (HELO nm2-vm0.bullet.mail.sp2.yahoo.com) (98.139.91.248) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 23 Jan 2011 12:12:10 +0000 Received: from [98.139.91.67] by nm2.bullet.mail.sp2.yahoo.com with NNFMP; 23 Jan 2011 12:11:50 -0000 Received: from [98.139.91.42] by tm7.bullet.mail.sp2.yahoo.com with NNFMP; 23 Jan 2011 12:11:50 -0000 Received: from [127.0.0.1] by omp1042.mail.sp2.yahoo.com with NNFMP; 23 Jan 2011 12:11:50 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 321963.49895.bm@omp1042.mail.sp2.yahoo.com Received: (qmail 24934 invoked by uid 60001); 23 Jan 2011 12:11:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1295784710; bh=M+0vOJTUgS4ifApdmmbocEysewJ+9gqagaJFi1OzqaM=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=agUPDnmH/yOf5ruGGk/4MlkJdgvqqQPWwoG85VgR5J4Nf8prA/cpJ9IIvx6DxyZ79iJm6jNMVU6UoP9YPiyE99Qv+JESlMw5NLKapepGBAmGo4qzJSJq/fRcQ/y5J5/hnYauGYVaDOFfudSjQbO5xv5aKHcKZeTTco7F8w9EfOA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=6owrYnpsQNEgxj/2aT+EB0PH4fuI9LnwEsACyfwjqOiPqXSyE7N2YMIwlrx7I5oOUSG1YIrViOy1p+lLZMqsKSP/TXtFj9iWeH5PbWefQJHiwK6pb71/JBNmg5xvyqpBB09q3Wh68mF+YUJZK4WLnCFQDVebrVkyCsN91DjzUBA=; Message-ID: <193706.24643.qm@web45502.mail.sp1.yahoo.com> X-YMail-OSG: 1ooL.SoVM1ly1LRmUbxdUZY05fluBhdmYakTUSQV.pSEwfU Z_3MqPJgnarH4EwtfxMua9GZ.aMMRoeiecQ23lfMI.IipeHq_cXcPaM7jwmH 0YKGJ9Xuft_QfjjoBms7jsMd3pC5I_Xymf9gI0FOB.IsGRGxQe9mEf0uMIdw 3Be3vbkL.ToFLgEcqdNRJ_g1AleoDKGtDb4EkoEeUOgVnsIQ1RNYAA68oGBI ZTqA- Received: from [87.202.18.213] by web45502.mail.sp1.yahoo.com via HTTP; Sun, 23 Jan 2011 04:11:50 PST X-Mailer: YahooMailRC/555 YahooMailWebService/0.8.107.285259 References: <485946.67008.qm@web45511.mail.sp1.yahoo.com> Date: Sun, 23 Jan 2011 04:11:50 -0800 (PST) From: am am Subject: axis2 session scopes To: java-user@axis.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-228202929-1295784710=:24643" --0-228202929-1295784710=:24643 Content-Type: text/plain; charset=us-ascii I am starting on axis2 (1.5.4). I am looking into the various session scopes for web services (request, soapsession etc). By experimenting, I notice that in all scopes except the application scope, there is a new instance of my web service being created per service call. Only by setting the scope to "application" in the services.xml, the web service is instantiated only once, and being re-used across all web service calls. My testing for this, was actually a print statement in the web service constructor. The constructor was called for scope="request" or scope="soapsession" or scope="transportsession" for each ws call. So my question is the following: Is this the case in axis2? And if yes, for non-trivial web services, isn't it very costly (to re-instantiate per service call)? Is the recommended approach to use application scope services? Or my understanding is wrong here? Thank you! --0-228202929-1295784710=:24643 Content-Type: text/html; charset=us-ascii
I am starting on axis2 (1.5.4).
I am looking into the various session scopes for web services (request, soapsession etc).
By experimenting, I notice that in all scopes except the application scope, there is a new instance of my web service being created per service call.
Only by setting the scope to "application" in the services.xml, the web service is instantiated only once, and being re-used across all web service calls.
My testing for this, was actually a print statement in the web service constructor. The constructor was called for scope="request" or scope="soapsession" or scope="transportsession" for each ws call.
So my question is the following: Is this the case in axis2? And if yes, for non-trivial web services, isn't it very costly (to re-instantiate per service call)?
Is the recommended approach to use application scope services? Or my understanding is wrong here?

Thank you!




--0-228202929-1295784710=:24643--