Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 64107 invoked from network); 6 Nov 2007 23:37:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2007 23:37:17 -0000 Received: (qmail 18175 invoked by uid 500); 6 Nov 2007 23:37:04 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 18154 invoked by uid 500); 6 Nov 2007 23:37:04 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 18143 invoked by uid 99); 6 Nov 2007 23:37:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 15:37:04 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of samisa.abeysinghe@gmail.com designates 209.85.128.186 as permitted sender) Received: from [209.85.128.186] (HELO fk-out-0910.google.com) (209.85.128.186) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 23:37:04 +0000 Received: by fk-out-0910.google.com with SMTP id f40so2102441fka for ; Tue, 06 Nov 2007 15:36:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=3MyqNsG+sCujwFyc39EyRp4OQV3/tRv5l+n6Q2KkstE=; b=CjZZ8KznFzsrczfSuJDNtjc3zWaOETkINrwUN5UlSpfw2z1I/hTASalsmXqJ837KsTUzDWNOj3Y2r0jcdRiN/+SiW8sWJ1gyvCfnNNRE1NPhcSxicuBh8r7noQeKcQkS5EStoicrY1dYQ2YHupoZyg4M88MkfQW7Q9Ld0eWHQRQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=au0Q3DQIug1S/9GSLxrkIQlPmTkqAMbjrNPkTkzfMpuwTtXqWLgaQ2amx5wCL8T3M8CDiqXBOFVtCu8JBg0RjAvsjpOi4OE4TbBhVCqXhS/Y8jQxuZ2DELDQkx9CVwsKgSFaohTDKpwJhoWzRUFrhEZTS727+T6eS3jxth98uGM= Received: by 10.82.174.20 with SMTP id w20mr13701779bue.1194392202258; Tue, 06 Nov 2007 15:36:42 -0800 (PST) Received: by 10.82.150.4 with HTTP; Tue, 6 Nov 2007 15:36:42 -0800 (PST) Message-ID: Date: Wed, 7 Nov 2007 05:06:42 +0530 From: "Samisa Abeysinghe" To: "Apache AXIS C User List" Subject: Re: Urgent: Specifying scope in Axis2c In-Reply-To: <489947c0711060927v24aecb66kfcd2b148322fb02a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <489947c0710111559t7f0c74a7s3c0c919f54a24523@mail.gmail.com> <470EE305.8080100@wso2.com> <489947c0710112211p2a722fa1w3574fc079519ae80@mail.gmail.com> <470F0FD7.7030003@wso2.com> <489947c0711060927v24aecb66kfcd2b148322fb02a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Subra, On Nov 6, 2007 10:57 PM, Subra A Narayanan wrote: > Hello Samisa, > > Do you have any updates on this issue? Do you have an approximate time frame > when this issue would be fixed in the framework? Is this feature under > development? I have looked into this and proposed a solution to this on dev list. However, as of now, I find it difficult to find time to attend to this. I have to check if any other developer is attending this. I cannot gaurentee if the proposed solution would work, as we have to implemnt and see it in action to verify that it works. Given the risk, I would propose that you look in to a database driven solution for the time being until this is solved as I recommended earlier. As I mentioned, Savan module had done something similar, so that you can get an idea form that to solve this temporarily. Thanks, Samisa... > > This capability is very important for the application I am working on. If it > wont't be fixed in the framework anytime soon, I will have to come up with a > fix in my code. > > Your help is much appreciated. > > Subra > > On 10/12/07, Samisa Abeysinghe wrote: > > Subra A Narayanan wrote: > > > thanks samisa. > > > > > > where would i store such a flag? service group context like in the > > > add.c example from sg_math service? > > Nop, if you do that, I think you will get the same problem again. > > I think you may have to use a database to do that. Savan module, the > > WS-Eventing module, came across such a problem and used sqlite. > > > > Can someone please explain how it was done in Savan? > > > > In the mean time, the matter is discussed on dev list, and would have a > > solution for this. > > > > Thanks, > > Samisa... > > > > > > On 10/11/07, *Samisa Abeysinghe* < samisa@wso2.com > > > > wrote: > > > > > > Subra A Narayanan wrote: > > > > Hello everyone, > > > > > > > > I have run in to an issue which I can't seem to figure out. In > > > my init > > > > method in the service skeleton I call the initialization routine > of > > > > one of the libraries that my web service uses. I notice in my logs > > > > that the library initialization function is being called 8 > > > times. This > > > > corresponds to the number of apache processes that are running. > > > This is a problem yet to be solved in Axis2/C. See > > > > http://damithakumarage.wordpress.com/2007/09/23/an-axis2-c-design-issue/. > > > This is a pending issue that needs to be fixed. > > > The workaround for the time being would be to use some persistent > > > storage to keep a flag and call the init routine based on the flag > > > value. > > > > > > Samisa... > > > > > > > > This is causing a lot of issues because I was under the impression > > > > that my web service init function is called only once when the > first > > > > request comes in. My library sets up some resources which I want > to > > > > share among all processes. Can this be done? > > > > > > > > In Axis2/Java there is a way to specify scope for the webservice > > > > (request, session, application) in the services.xml file? can > > > > something similar be done in Axis2/c? I took a look at the > > > axis2c code > > > > and saw that there is an enum called axis2_scope defined. Is it > used > > > > for the same purpose as in Axis2/Java? > > > > > > > > Thanks for any help. > > > > > > > > Subra > > > > > > > > > > > > > > > > > > > > > -- > > > Samisa Abeysinghe : WSO2 WSF/PHP > > > " > > > > http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP > > > < > http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP > >" > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > > > > > > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > > > > > > > > > > > > > > -- > > Samisa Abeysinghe : WSO2 WSF/PHP > > " > http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP > " > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org