Re: Database access in contextInitialized

2004-05-02 Thread Samuel Rochas
Hello Craig, Indeed, the recommended pattern today is for you to acquire your DataSource instances from the JNDI naming context Thanks for your advise. I was the way I handled it before using struts, so I will continue that way. Sincerly Samuel --- andinasoft SA - Software y Consulting ---

Re: Database access in contextInitialized

2004-05-02 Thread Richard Yee
Craig, When I put logging statements in the ServletContextInitializer class, I see that the ServletContextInitializer.contextInitialized() method is actually called after the servlet init() methods for servlets that load at startup. Is this correct? You say that the contextInitialized() gets

Re: Database access in contextInitialized

2004-05-01 Thread Craig R. McClanahan
Samuel Rochas wrote: Hello Struts Gurus, I am starting with struts. I used to make some initialization in my Servlets using the init() method. With struts, I just implemented the contextInitialized method of ServletContextListener Interface, and I have a place for such initializations. Fine.