Re: Using serialization to re-/store state: UnknownServiceException: protocol doesn't support output:
Michael Weller <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <008101c2cea9$65df8ee0$1307b9d9@gutschimachine> |
> Hi Carl, > I am also looking for same thing. I have written a bean for counter. I want > to serialise this bean to a file so that on server restart i should be able > to get the last count . Currently I am explicitily writing it in file > using stream . I want to use object serialisation. > I have ' implements serialisable' but yet not clear when and what method > will be called when server is being stopped. > Like already said ServletContextListener is what you're searching. -mw ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html