Re: Stateful Web Services...

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 UTC