mirror of https://github.com/apache/activemq.git
applied patch from AMQ-356
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@366156 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f73e2097dd
commit
e310c21a8d
|
@ -261,7 +261,13 @@ public class ActiveMQManagedConnection implements ManagedConnection, ExceptionLi
|
|||
* @see javax.resource.spi.ManagedConnection#associateConnection(java.lang.Object)
|
||||
*/
|
||||
public void associateConnection(Object connection) throws ResourceException {
|
||||
throw new ResourceException("Not supported.");
|
||||
if (connection instanceof ManagedConnectionProxy) {
|
||||
ManagedConnectionProxy proxy = (ManagedConnectionProxy) connection;
|
||||
proxyConnections.add(proxy);
|
||||
}
|
||||
else {
|
||||
throw new ResourceException("Not supported : associating connection instance of " + connection.getClass().getName());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue