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

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top