Suppose an application uses connections to two resources, resource-A and
resource-B.  There are two connection pools, both with a maximum size of
2.  There are 4 threads.

Imagine this scenario:

Threads 1, 2, 3 and 4 begin transactions.

Threads 1 and 2 request connections from the resource-A pool, and get
them, thus exhausting the pool.

Threads 3 and 4 request connections from the resource-B pool, and get
them, thus exhausting the pool.

Threads 1 and 2 request connections from the resource-B pool, and block
because the pool is empty.

Threads 3 and 4 request connections from the resource-A pool, and block
because the pool is empty.

Deadlock.

Is this possible with JBoss?  If not, how does JBoss deal with this
problem?

Ben


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to