Re: Stateful Web Services...

Mark Baker <[email protected]>
Newsgroups gmane.comp.web.services.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.