permaculture playing cards*
The moose likes Struts and the fly likes DataSource in Struts Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DataSource in Struts Application" Watch "DataSource in Struts Application" New topic
Author

DataSource in Struts Application

Boon Subra
Ranch Hand

Joined: Jul 18, 2001
Posts: 69
Hi All,

I am a newbie to Struts. To get hands on ,I successfully tried to folow the steps in the book "Mastering Jakarta Struts' and it did work fine.

My question is ,Am I using the connection pooling concept?
If so ,why does it show Generic DataSource ? Or is Generic DataSource the connection pooling
The details are:

But the Tomcat server displays while starting the service as:
[INFO] Generic DataSource -- createConnection()
[INFO] Generic DataSource -- createConnection()


Please verify

Thanks,
Bhuvana
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
The DataSource interface doesn't tell you anything about its implementation -- whether it's reusing a single connection or keeps a pool of connections. You need to see how that particular DataSource has been configured in Tomcat's configuration files (start by reading this).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
 
subject: DataSource in Struts Application
 
Similar Threads
datasource?
Transactions in Tomcat
DataSource issues
j2ee tranasctions
DataSources/Pooling & Generic UserIds