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 JDBC and the fly likes how can we restrict no of user to get Connection object dynamically? 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 » Databases » JDBC
Bookmark "how can we restrict no of user to get Connection object dynamically?" Watch "how can we restrict no of user to get Connection object dynamically?" New topic
Author

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

madhav changala
Ranch Hand

Joined: Dec 20, 2005
Posts: 57
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


saivenumadhav
stu derby
Ranch Hand

Joined: Dec 15, 2005
Posts: 333
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

Joined: Dec 20, 2005
Posts: 57
THANKS FOR U R REPLY
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how can we restrict no of user to get Connection object dynamically?
 
Similar Threads
Limit access to web application
Can i add multiple text fields at a time
Need guidance regarding connection pooling.
Restricting the number of objects
JTextField length restriction...