Initialization before the Application Startup.

2008-04-03 Thread JiVi

Hi All,

I'm new to Struts2 . I dont know about Struts1.x either. Jus thought of
starting with Struts2.

I'm creating a web application. I jus want to initialize the system before
the application startup. Like reading certain config files, initializing the
Connection Pool, creating DAO factory.. etc.
I read somewhere that Struts1 has plugins to support this. But i couldnt
find anything in Struts2.
Please help me out.

Thanks and Regards,
Jijo

-- 
View this message in context: 
http://www.nabble.com/Initialization-before-the-Application-Startup.-tp16467793p16467793.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Initialization before the Application Startup.

2008-04-03 Thread JiVi

Hi All,

I'm new to Struts2 . I dont know about Struts1.x either. Jus thought of
starting with Struts2.

I'm creating a web application. I jus want to initialize the system before
the application startup. Like reading certain config files, initializing the
Connection Pool, creating DAO factory.. etc.
I read somewhere that Struts1 has plugins to support this. But i couldnt
find anything in Struts2.
Please help me out.

Thanks and Regards,
Jijo

-- 
View this message in context: 
http://www.nabble.com/Initialization-before-the-Application-Startup.-tp16467802p16467802.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Re: Initialization before the Application Startup.

2008-04-03 Thread Dave Newton
--- JiVi [EMAIL PROTECTED] wrote:
 I'm new to Struts2 . I dont know about Struts1.x either. Jus thought of
 starting with Struts2.
 
 I'm creating a web application. I jus want to initialize the system before
 the application startup. Like reading certain config files, initializing
 the
 Connection Pool, creating DAO factory.. etc.
 I read somewhere that Struts1 has plugins to support this. But i couldnt
 find anything in Struts2.
 Please help me out.

You may want to use a ServletContextListener.

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]