permaculture playing cards
The moose likes JDBC and Relational Databases and the fly likes DataSource and Connection Pooling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DataSource and Connection Pooling" Watch "DataSource and Connection Pooling" New topic

DataSource and Connection Pooling

alex reznik

Joined: Jul 02, 2002
Posts: 27
Hello, everybody
I have a webapp that uses several JavaBeans, one on which is a DBConnection bean and is called from other beans to execute queries, updates, etc.
I tried to register a DataSource on Tomcat 4 and call it from the bean, but it looks like since its not going from jsp, the DataSource is outside the Context. I am aware that there is a way to do it thru servlets, but what if i need to do some server-side processing only.
Anyway, my question is:"has anybody successfully set up a bean that does a connection thru DataSource pooling and is called from other classes on the server?"
Thanks in advance
Hartmut Ludwig
Ranch Hand

Joined: Aug 31, 2002
Posts: 51
Check this out!
I agree. Here's the link:
subject: DataSource and Connection Pooling
It's not a secret anymore!