JDBC Resource Ref from various webapp init methods

0

0ssk0

Hello

Web Server : Sun One Web Server 6.1

I want to do some DB activity using JDBC Conn Pool resource ref during
webapp startup.

I tried putting the code in

- contextInitialized()
- filter init()
- servlet init()

None of them worked. Even though the code is executed, its unable to
fetch the JDBC Conn Pool ref since the ref is getting initialzied only
after these init methods are executed.

Any workarounds? Is there a way to make Resource Ref to initialize
first?

thanks
ssk
 

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
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top