The behavior you are seeing is by design.
Suppose, there is a Bean Managed Transaction (UserTransaction), within the transaction connections will be shared. once the transaction is completed, the physical connections are mapped back so that, application can the use those connections separately.