This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes JDBCRealm connection pooling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JDBCRealm connection pooling" Watch "JDBCRealm connection pooling" New topic
Author

JDBCRealm connection pooling

Tushar Madhukar
Ranch Hand

Joined: May 03, 2006
Posts: 36
Hi,

I would like to know whether org.apache.catalina.realm.JDBCRealm class in Tomcat 5 manages DB connection pools.

If I need connection pooling, can I configure the class and re-use it or I would have to implement my own Realm implementation?

Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41065
    
  43
The realm (and thus the DB connection) is used only when someone logs into an application. I doubt that it's going to be worth the trouble of dealing with a connection pool just for that. How many users are you expecting to sign in (not being logged in!) simultaneously over any extended period of time?


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBCRealm connection pooling
 
Similar Threads
connection with database
bind datasouce to jndi
two servlets, one datasource
Pleaes Help: Structs and Connection Pooling...
JDBC Connection Pooling Framework