• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How Jboss allocates connection?

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

For DB connection pooling how Jboss allocates the database connection ?

Suppose 10 is the maximum no of threads and all are allocated. If 11,12,13,14th connection is required then how Jboss allocates it and to whom?

Please give some details.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you allocate at most 10 database connections in the pool, and all 10 are used, then any other thread that needs a connection will be paused for up to blocking-timeout-millis. If a connection becomes available within that time, the thread will be given the connection. If the time expires without a connection becoming available, and exception is thrown. Multiple threads can be waiting for connections, and it is first come, first served, with each having its own timer.
 
reply
    Bookmark Topic Watch Topic
  • New Topic