This content has been marked as final.
Show 2 replies
-
1. Re: ManagedConnection shared by multiple Connections
adrian.brock May 12, 2005 6:19 PM (in response to camueller)"camueller" wrote:
According to the spec, chapter 6.5.4.2, multiple Connections sharing a ManagedConnection should be supported.
Yes, in the same transaction for example, the connection handles share the same
real managed connection:UserTransaction ut = ... ut.begin(); Connection c1 = connectionFactory.getConnection(); Connection c2 = connectionFactory.getConnection();
Absent a transaction how is the pooling to know that the connection can be shared? -
2. Re: ManagedConnection shared by multiple Connections
adrian.brock May 12, 2005 6:26 PM (in response to camueller)What you really want is a custom pool which has a pooling strategy of
"Don't Pool - Share".
The only mechanism in JBoss to use your own custom pool is to deploy using the MBeans
directly rather than using the -ds.xml (see previous posts for examples).
But the MBean api is not guaranteed to be stable across releases.