Application scope variable on startup

S

Srikanth

Hi,

I have my own ResourceFactory which returns a bean. I configure this
resource factory in tomcat 5.5 context xm file.

I would like to create a application scope variable on tomcat startup
and assign the value from the bean.method().

Is there anyway we can do it using web.xml?

This can eliminate to create JNDI initialContext in every jsp as I
would be dependent on this application scope variable on each page.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,269
Messages
2,571,097
Members
48,773
Latest member
Kaybee

Latest Threads

Top