You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Pasha Shabalin <pa...@bigfoot.com> on 2002/04/09 14:54:13 UTC

General beginners question: State persistence?

Hello,

i have a general question to SOAP. Hope it is still ok to post it here.

Which options do i have for having stateful objects on the SOAP server? So
that the client "holds" a reference to one object, which preserves it's
state between client calls, until client somehow decides to drop the object.

;-) of course except of self-coding session IDs and "by hand" storing object
state in a database on every call

thanks, have a nice day
pasha



Re: General beginners question: State persistence?

Posted by Stan Jordan <sk...@worldnet.att.net>.
Pasha...
Yes, your service can maintain session state for each client.  Look in the
archives for a thread "stateful web services".  Basically, you need to do
two things:
Put this line in deployment descriptor...
   <parameter name="scope" value="session"/>
Put this line in your client...
   call.setMaintainSession(true);
Stan

----- Original Message -----
From: "Pasha Shabalin" <pa...@bigfoot.com>
To: <ax...@xml.apache.org>
Sent: Tuesday, April 09, 2002 6:54 AM
Subject: General beginners question: State persistence?


> Hello,
>
> i have a general question to SOAP. Hope it is still ok to post it here.
>
> Which options do i have for having stateful objects on the SOAP server? So
> that the client "holds" a reference to one object, which preserves it's
> state between client calls, until client somehow decides to drop the
object.
>
> ;-) of course except of self-coding session IDs and "by hand" storing
object
> state in a database on every call
>
> thanks, have a nice day
> pasha
>
>
>