Re: [Webwork-devel] Spec-compliant Action Startup
Brought to you by:
baldree,
rickardoberg
From: Victor S. <vsa...@ho...> - 2002-03-05 16:06:20
|
ServletContextListener is your very good friend, aka known as the Wolf, or the cleaner, usually interpreted by Harvey Keitel!. Call him up, he will solve your problem. /V >From: Jim...@do... >To: "web...@li..." ><web...@li...> >Subject: [Webwork-devel] Spec-compliant Action Startup >Date: Tue, 5 Mar 2002 10:41:45 -0500 > >I need to perform some tasks when my servlet is deployed. (My servlet >needs to spawn a Thread) I can't wait until someone decides to invoke one >of my actions. Typically this is accomplished in the init() method of the >servlet. Since we are writing actions in webwork, the servlet >initialization is hidden from us. There are a few solutions that I can >see: > >1. Add a method signature to webwork.properties that is invoked when the >ServletDispatcher's init method is invoked. >2. Somehow force an action to be invoked after deployment. (Make an http >call against the servlet in the deployment script - kludgey). >3. Subclass DispatcherServlet, and override init(). > >Has anyone else run into this problem? Is there a mechanism in web.xml >that will support this? > >jim _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx |