[ https://issues.apache.org/jira/browse/AMQ-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12980120#action_12980120 ]
Gary Tully commented on AMQ-3121: --------------------------------- hmm, not doing the close on the connection used to create the XA Resource will leave a connection leak. There is no way to close an XAResource, so I think it is up to the resource adapter to manage the connection and close it when the resource adapter is shutdown. > Avoid connection creation while creating XAResource if the connection factory > is not an xa connection factory > ------------------------------------------------------------------------------------------------------------- > > Key: AMQ-3121 > URL: https://issues.apache.org/jira/browse/AMQ-3121 > Project: ActiveMQ > Issue Type: Improvement > Components: JCA Container > Affects Versions: 5.4.2 > Reporter: Ivan > Attachments: ActiveMQ-3121.patch > > > Avoid connection creation while creating XAResource if the connection factory > is not xa connection factory, also, if it is xa connection, I think that the > connection should not be closed as the new created xa resource holds > reference to connection. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.