In my application I have a DatabaseServlet which gets a pool of database connections 
on startup.

What would be the best approach for my java beans to get a free connection from the 
pool? 

Should I store the pool in the servletContext and the action classes get a connection 
from the pool and pass the connection to the java bean? In such a case who should 
return the connection back to the pool, the java beans or the action classes?

Thanks in advance.

-Nimmi

Reply via email to