• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data base connection polling

 
santhosh.R gowda
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I had created one data base connection pooling which is of unlimited size.....





Here in this code i'm just checking whether the connections are free if not i will create new connection .so now i want to limit the size to 10 connections so that even when 11 th connection request it should have to wait untill any one of the 10 connections has been realesed so please give me a hand in this code....
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15644
48
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The second piece of code looks a bit strange, as if you searched and replaced every 't' by 'Connection'.
 
santhosh.R gowda
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i had replace the T by Connection
 
Campbell Ritchie
Sheriff
Posts: 51468
87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This thread would sit better on the JDBC forum. Moving.
 
Jan Cumps
Bartender
Posts: 2608
14
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
santhosh.R gowda wrote:Yes i had replace the T by Connection
Can you edit the first mail (there is an edit button that you can use) and correct listing 2?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic