JMS pool should be implemented like JDBC to avoid connections being created always twice (local and xa).