Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 8885 invoked from network); 22 May 2009 10:50:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 May 2009 10:50:48 -0000 Received: (qmail 94519 invoked by uid 500); 22 May 2009 10:42:33 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 94514 invoked by uid 500); 22 May 2009 10:42:33 -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 94505 invoked by uid 99); 22 May 2009 10:42:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 10:42:33 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [206.190.52.47] (HELO smtp108.biz.mail.re2.yahoo.com) (206.190.52.47) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 22 May 2009 10:42:24 +0000 Received: (qmail 32256 invoked from network); 22 May 2009 10:42:02 -0000 Received: from unknown (HELO ?192.168.4.75?) (asami@202.142.150.34 with plain) by smtp108.biz.mail.re2.yahoo.com with SMTP; 22 May 2009 10:42:02 -0000 X-Yahoo-SMTP: iQ2h4OeswBDkvpBv4XRI3AOIDKCRQ9AeH_vXuB8- X-YMail-OSG: 0qMjMhkVM1nJd99E9mSdhju.BqvROMBhwK6McW1gXxFcODu6oiith7KFwfqJDHtqwNr5I88E4LkOR2X02MgCGKNcwLPTZR8D0RSGDwEnOnhiek7awATtqNNvOKGfH0puUCXURD5PGMhB8lMXlIPhXon6nJejnjg1Chi.DTbOtnn0fP0Mp37e7om8iY5kGg1M1BvP79eGsu7ILAxn_Q57qnX2lo8q0WQNVXtSY6tEV_ZeEaG2jc8YYkKy6JNWdLXium7DWa7gP5pEDZ6f0WaGKEifhtn0zGoDjgnk4LST_rOa_onj3p8g9FbePiF6gfia_E6Ki7i7cpYmXM35iYFIug-- X-Yahoo-Newman-Property: ymail-3 Message-ID: <4A168F2C.80300@folio3.com> Date: Fri, 22 May 2009 16:40:28 +0500 From: Abdul Sami User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: mod_axis and apache problem: starting apache loads 4 instances of web service References: <4A15667E.4060600@folio3.com> <6463f4210905210641x7d2974cr78b871bd53ea8fe2@mail.gmail.com> <4A1569FE.9030809@folio3.com> <4A157049.8000708@folio3.com> <4A1567B3.9020106@gmail.com> <4A163665.4060102@folio3.com> <84cacd920905212205w4262db3cte19a25e8c05499f2@mail.gmail.com> <4A164BCB.200@folio3.com> <84cacd920905220109n36e4afb6v2bc5af51ccf92a3f@mail.gmail.com> In-Reply-To: <84cacd920905220109n36e4afb6v2bc5af51ccf92a3f@mail.gmail.com> Content-Type: multipart/alternative; boundary="------------030902030209040908020100" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------030902030209040908020100 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The service is asynchronous due to external resources, the thread has to wait for some time before it can actually process the request. I think i should either separate the consumer thread to a stand alone service, or make it work with other instances of threads as well. I have also noted that my 'free' function of Axis Svc Skeleton is not being called on stopping Apache. When it is called? Uthaiyashankar wrote: > On Fri, May 22, 2009 at 12:22 PM, Abdul Sami wrote: > >> Uthaiyashankar wrote: >> >>> Each instance will load their own service library and serve from them, >>> but they will load only once. What do you want to achieve? If you want >>> to share some data between consecutive requests, then you can enable >>> shared global pool [1] . >>> >>> Regards, >>> Shankar. >>> >>> [1] http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2 >>> >>> >>> >> What effect the Shared global pool will have on the Service? I have a Queue >> and a consumer thread. I want to have only one consumer thread running. >> > > I am still not clear on your requirements. Why do you want to have > only one consumer thread? If it is due to some other external factors, > then shared global pool will not help. But what you want to achieve is > to share a data between two requests, then you can do it using shared > global pool.. > > If the limitation is due to external factors, then you have to > configure httpd as you specified in your mail. In that case, service > library will be loaded once and all the requests will be served by > that. > > Regards, > Shankar. > > > >> > > > > --------------030902030209040908020100 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit The service is asynchronous due to external resources, the thread has to wait for some time before it can actually process the request. I think i should either separate the consumer thread to a stand alone service, or make it work with other instances of threads as well.

I have also noted that my 'free' function of Axis Svc Skeleton is not being called on stopping Apache. When it is called?

Uthaiyashankar wrote:

On Fri, May 22, 2009 at 12:22 PM, Abdul Sami <asami@folio3.com> wrote:
  
Uthaiyashankar wrote:
    
Each instance will load their own service library and serve from them,
but they will load only once. What do you want to achieve? If you want
to share some data between consecutive requests, then you can enable
shared global pool [1] .

Regards,
Shankar.

[1] http://ws.apache.org/axis2/c/docs/axis2c_manual.html#mod_axis2


      
What effect the Shared global pool will have on the Service? I have a Queue
and a consumer thread. I want to have only one consumer thread running.
    

I am still not clear on your requirements. Why do you want to have
only one consumer thread? If it is due to some other external factors,
then shared global pool will not help. But what you want to achieve is
to share a data between two requests, then you can do it using shared
global pool..

If the limitation is due to external factors, then you have to
configure httpd as you specified in your mail. In that case, service
library will be loaded once and all the requests will be served by
that.

Regards,
Shankar.


  
    



  

--------------030902030209040908020100--