Use a ServletContextListener? This is the recommended method to do antyhing at startup / shutdown.
However if you're using DB connections, I suggest you investigate the pooling provided by your container - and retrieve the connections as needed via JNDI in real time. -mike On 11/11/02 7:51 PM, "Ottone Maurizio Grasso" ([EMAIL PROTECTED]) penned the words: > I'm almost sure I'm posing a typical webwork newbie question, but that's > what I am: my esposition too the framework adds up to a frantic w-e > spent perusing examples and docs. > To the question then: where's the right way to write the operations you > usually write into the init method of a Servlet (i.e: db connections) > and want to be performed before any action belonging to your application? > To sum things up: it has to be executed once and when the first action > is invoked it's already been executed. > > Do you modify the ServletDispatcher? (I guess not :-)) > Do you write a one-time action which gets auto-invoked by the container > at startup and then insert into the Application map the data needed > inside the other actions ? (still don't know if it works ...) > > thanks in advance > otto > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork