atomikos / transactions-essentials

Development repository for next major release of
https://www.atomikos.com/Main/TransactionsEssentials
Other
461 stars 139 forks source link

AtomikosConnectionFactoryBean extra connection outside connection-pool #176

Open Maverick19841972 opened 1 year ago

Maverick19841972 commented 1 year ago

Hi,

I am using the AtomikosConnectionFactoryBean to connect to an Apache Artemis JMS-broker. I set both the min and max poolsize to the same number using the individual setters or the setPoolSize setter. I always end up with one extra connection on my JMS-broker. So when I set the pool to 2 I get 3 connections and when I set the pool to 5 I get 6 connections etc. I tracked it down to a XARefresh of the XAResource which creates an extra connection outside of the connection pool. It calls the createConnection on the target XAConnectionFactory directly.

Any thoughts on this/is this expected behaviour ?

Best regards and thanks in advance, Jelmer

GuyPardon commented 1 year ago

Hi, we keep one extra connection open and available for recovery. This is by design...