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.
--
Mark Baker.   Ottawa, Ontario, CANADA.        http://www.markbaker.ca
Received on Wednesday, 27 October 2004 14:59:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 July 2007 12:25:46 GMT