axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Almeida, Timothy" <timot...@firepond.com>
Subject RE: Session Scope
Date Thu, 20 Feb 2003 21:45:42 GMT
Thanks Barry.
For anyone else who's interested:
There's a method called setMaintainSession(boolean) on both Stub & Service.
You'd need to call it on the Service object if using dynamic invocation; if
using toolkit generated stubs, you would want to call it on the Stub
returned by the 'Service Locator'.

-----Original Message-----
From: Barry Levinson [mailto:barry@levinson.us]
Sent: Thursday, February 20, 2003 3:14 PM
To: axis-user@ws.apache.org
Subject: Re: Session Scope


Yes, you need to allow cookies to be stored.  See archives of this list 
for a more in depth answer.

--Barry

Almeida, Timothy wrote:

>I'm attempting to deploy a simple 'hello world type' service to run in
>"session scope", but it doesn't appear to be working. ('request' &
>'application' scope settings work as I would expect them to.)
>If make two consecutive calls to the same method of a service for which the
>scope is specified to be 'session', it results in the 'service object'
being
>instantiated twice -- once for each call invocation.
>* Is this a known bug by any chance? (I'm using Axis Release 1.0)
>* Am I possibly omitting to do something? (Allowing cookies to be stored
for
>example.)
>* Or am I just misunderstanding how this should work?
>
>Here's the relevant section of the server-config.wsdd file:
> <service name="Greeter" provider="java:RPC">
>  <parameter name="allowedMethods" value="*"/>
>  <parameter name="scope" value="session"/>
>  <parameter name="className" value="server.Hello"/>
> </service>
>
>
>I badly need session state to be maintained for another less frivolous
>service I'm working on.
>Any advice/insights would be much appreciated...
>Thanks,
>Tim
>
>  
>

Mime
View raw message