GeeCON Prague 2014*
The moose likes JDBC and the fly likes connection pooling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "connection pooling" Watch "connection pooling" New topic
Author

connection pooling

gaser hasan
Greenhorn

Joined: Aug 03, 2010
Posts: 9
please i am new to jsp, when i tried to implement this example of connection pooling it gives me (too many connections) error, and the connection doesn't work
those are the two classes of the example please could any one tell me where is the problem and how to implement the in a right way ?
thanks in advance
////////////////////////////class ConnectionPoo.javal /////////////////////////////////////

///////////////////////////class main.java//////////////////////////////////
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2501
    
    8

Please UseCodeTags.
When your post is properly formatted, people will find it easier to read and help you.


OCUP UML fundamental and ITIL foundation
youtube channel
gaser hasan
Greenhorn

Joined: Aug 03, 2010
Posts: 9
thank you Dear Jan Cumps i am sorry i am new to the forum but i promise that i will stick to the instructions
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30595
    
154

Why are you writing your own connection pool? It would bet better to use an open source one that already works such as dbcp or c3p0.

Also, you may want to not use red for your question. It's a bit of an eyestrain on the tan background.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30595
    
154

And Welcome to JavaRanch!
 
 
subject: connection pooling