struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rosen <JRo...@yvimail.com>
Subject RE: Question: Clean shutdown of application scope objects
Date Mon, 23 Sep 2002 15:14:43 GMT
Alternatively, implement the PlugIn interface to initiate and destroy your
model factories, this way it's more of a Struts optional extension that can
re-used.

Jason

-----Original Message-----
From: Galbreath, Mark [mailto:Galbreath@tessco.com]
Sent: Monday, September 23, 2002 4:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Question: Clean shutdown of application scope objects


The main servlet in Struts is ActionServlet.  Extend it and override
destroy();

Mark

-----Original Message-----
From: Tal Rotbart [mailto:struts@opisphere.com]
Sent: Monday, September 23, 2002 6:47 AM

I'm a new Struts user, and I've been trying to figure out how to make sure
that my model's clean shutdown is called when the webapp is shutdown when
using Struts. With a regular servlet, it's quite easy -- just override
"destroy()" and put the clean-up call there, but in Struts I can't seem to
find how to do so.

In Struts 1.1 I've been told it has to do with the new RequestProcessor
class, but I'm not sure how to use it and the documentation in the JavaDoc
doesn't give a clue...

Thanks,
Tal

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message