W3C home > Mailing lists > Public > www-ws@w3.org > October 2004

Re: Stateful Web Services...

From: Mark Baker <distobj@acm.org>
Date: Wed, 27 Oct 2004 11:00:38 -0400
To: Crist?v?o Bento <cbento@criticalsoftware.com>
Cc: www-ws@w3.org
Message-ID: <20041027150038.GT14710@markbaker.ca>

On Wed, Oct 27, 2004 at 02:28:27PM +0100, Crist?v?o Bento wrote:
> Although there is one last thing that is confusing me. A Web Service life is controled by a Web Server like for example Tomcat. When a request arrives, the class that implements the request is dynamically loaded and the request is executed. When the request ends the class is deallocated. This means this class cannot maintain its internal state. Any kind of data that was kept by it is garbage collected. 

Not at all.  The "class" just has to pickle its state someplace such
that all it needs to reconstitute its state upon reactivation is some
cue within the inbound message; in the case of a real (RESTful) Web
service, that cue is the Request-URI.

Mark Baker.   Ottawa, Ontario, CANADA.        http://www.markbaker.ca
Received on Wednesday, 27 October 2004 14:59:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:05:15 UTC