Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Initialize a common library at startup

Status
Not open for further replies.

areznik

Programmer
Aug 7, 2002
25
US
Hi, guys and girls, Tomcat gurus and such!!

I have a very important question to ask all:

I would like to initialize a common library when the Tomcat starts up, so i have a method in my CommonLibrary.java that needs to be called only once.
How do i do this in Tomcat, (4.1.12) and where do i put this class?

Muchas Gracias in advance,

Alex
 
nevermind, i solved it
if anyone interested, couple of ways to do that,
1. specify a servlet in the conf/web.xml and give it a load on startup 1

2. do the same in your context's web-inf/web.xml file
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top