This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DataSource in Struts Application  RSS feed

 
Boon Subra
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!