Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 8588 invoked from network); 3 Apr 2008 11:42:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 11:42:23 -0000 Received: (qmail 96757 invoked by uid 500); 3 Apr 2008 11:42:16 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 96730 invoked by uid 500); 3 Apr 2008 11:42:16 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 96713 invoked by uid 99); 3 Apr 2008 11:42:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 04:42:15 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.68.5.17] (HELO relay03.pair.com) (209.68.5.17) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 Apr 2008 11:41:32 +0000 Received: (qmail 79090 invoked from network); 3 Apr 2008 11:41:42 -0000 Received: from unknown (HELO ?127.0.0.1?) (unknown) by unknown with SMTP; 3 Apr 2008 11:41:42 -0000 X-pair-Authenticated: 123.231.21.16 Message-ID: <47F4C270.8060407@opensource.lk> Date: Thu, 03 Apr 2008 17:11:36 +0530 From: Deepal Jayasinghe User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: axis-user@ws.apache.org Subject: Re: [Axis2][1.3] soapsession management with serviceGroup References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org > Hi all, > > I have read different mailings in this list, but they did not answer my > questions about soapsessions. > > Here is my scenario. I have two services deployed in a single > servicegroup. I now have setup a client which calls the services and I > can see that the ServiceGroupContext stays the same in the different > services. > Ok. > So here are my two questions: > 1. Where am I supposed to store my session information? It depends , if you want to share resources across your services in the service group then store in the servicegroupcontext else store in the service context. > Is it the > ServiceGroupContext? Am I supposed to create a SessionContext and store > in the ServiceGroupContext? > If you store in ServiceGroupContext the all the services in that group can access that , where as if you store that in ServiceContext only that corresponding service can access that. SessionContext is totally different thing it only uses for transport session , for soap session you get NULL as SessionContext value. > 2. I want to do some tidying up at the termination of the soapsession. At the moment we do not have a way to do that. Your session get terminated automatically unless you touch your services for sometime (that time is configurable in axis2.xml) > I > could use the destroy() methods in each service for the service-related > stuff. But where is the right place to tidy up resources belonging to > the whole serviceGroup, eg. database connections used by both services*? > Similarly, I want to do some initialization for the whole service group. > For that there is something called ServiceLifeCycle class , that will help you to do that , please have a following article to get some understanding about that. http://www.developer.com/db/article.php/3735771 Thank you! Deepal --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org