axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <dee...@opensource.lk>
Subject Re: [Axis2] Stateful services question
Date Tue, 06 Jun 2006 04:53:59 GMT
Hi Michele
pls see my comments below

Michele Mazzucco wrote:

>Hi all,
>
>If I'm right the application scope allows me to build steteful web
>services since there is only one service instance. 
>
Yes

>What happens if
>several invocations happen concurrently? Only one passes through (and
>all others wait) or several threads run concurrently, possibly changing
>the service state altogether? If the last option applies, what happens
>if the state is saved into the service context? Is it synchronized in
>any way?
>  
>
We have not synchronized any thing.

>Thanks in advance,
>Michele
>
>Deepal Jayasinghe wrote:
>  
>
>>You have to add a attribute called "scope" into your service element ,
>>as an example if you want to deploy your service in application scope ,
>>then you can do that by just changing your service element as follows
>>  <service name="foo" scope="application">
>>     .......
>>   </service>
>>
>>Michele Mazzucco wrote:
>>
>>    
>>
>>>Hi Deepal,
>>>
>>>what do you mean as "scope" and how can I configure my service scope?
>>>
>>>Thanks,
>>>Michele
>>>
>>>Deepal Jayasinghe wrote:
>>> 
>>>
>>>      
>>>
>>>>Hi Michele;
>>>>First that depend on the scope that your service going to deploy , lets
>>>>say your session scope is application then you can store state in
>>>>service context coz there will be only one service context for that service.
>>>>
>>>>If the scope is SOAPSession then you can get into the same session by
>>>>sending serviceGroupID , so as loan as clients  send the service group
>>>>id they can stay in one session, and you can keep state in either
>>>>service group context or service context.
>>>>
>>>>Or else you can store your service state in configuration context , that
>>>>is not the recommended way but you can still do that.
>>>>
>>>>Michele Mazzucco wrote:
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>Hi all,
>>>>>
>>>>>how can I maintain the service state across different client invocations
>>>>>(other than through  static fields)?
>>>>>
>>>>>
>>>>>Thanks in advance,
>>>>>Michele
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>>>
>>> 
>>>
>>>      
>>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>  
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message