AtomikosConnectionFactoryBean extra connection outside connection-pool
Maverick19841972 opened this issue · 1 comments
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
Hi, we keep one extra connection open and available for recovery. This is by design...