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 <009c01c2cdcf$72faf950$2d07b9d9@gutschimachine>
> I've looked at it, but I I think I should have been more specific: the
> persistance I was hoping to achive was after server reboot.. so I suppose
I
> should try application.setAttribute("myData", myBean); etc?
>

I stronly recommend a ServletContextListener for this purpose. It will put
the needed attribute iin the context on its creation time and will remove
the attribute from the context when it's destroyed. Here you write the
attribute's contents to a persistent storage (or let it do itself,
whatever).

-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
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.