File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what will happen if we access more than the maximum pool size

 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have configured tomcat for connection pooling and made minimum connection size is 20 and maximum allowed is 30. What will happen if we try to access more than 30 connections. Will the system through an error or will the connection wait until next one is available or the pool size will be increased?

My guess is the connection will wait until the timeout and then will throw an error.

Can someone please explain the same. Any help on this is very much appreciated.

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The thread will wait for maxTime for a connection to become available, after which an exception is thrown.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic