Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can we restrict no of user to get Connection object dynamically?

 
madhav changala
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i have one requirment that user to get connection object or jdbc connection restrict to some number how can i give only 10 people get conncetion object ....
how can i give 10 number dynamically


thanks&Regrads

Madhav
 
stu derby
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a connection pool, such as the Apache project's DBCP or another such one, and limit the size of the pool to your maximum number.
 
madhav changala
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKS FOR U R REPLY
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic