public class org.apache.activemq.ra.SimpleConnectionManager extends java.lang.Object implements javax.resource.spi.ConnectionManager, javax.resource.spi.ConnectionEventListener
{
private static final long serialVersionUID;
private static final org.slf4j.Logger LOG;
public void <init>()
{
org.apache.activemq.ra.SimpleConnectionManager v;
v := @this: org.apache.activemq.ra.SimpleConnectionManager;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ConnectionRequestInfo) throws javax.resource.ResourceException
{
javax.resource.spi.ManagedConnection v;
java.lang.Object v;
javax.resource.spi.ConnectionRequestInfo v;
javax.resource.spi.ManagedConnectionFactory v;
org.apache.activemq.ra.SimpleConnectionManager v;
v := @this: org.apache.activemq.ra.SimpleConnectionManager;
v := @parameter: javax.resource.spi.ManagedConnectionFactory;
v := @parameter: javax.resource.spi.ConnectionRequestInfo;
v = interfaceinvoke v.<javax.resource.spi.ManagedConnectionFactory: javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo)>(null, v);
interfaceinvoke v.<javax.resource.spi.ManagedConnection: void addConnectionEventListener(javax.resource.spi.ConnectionEventListener)>(v);
v = interfaceinvoke v.<javax.resource.spi.ManagedConnection: java.lang.Object getConnection(javax.security.auth.Subject,javax.resource.spi.ConnectionRequestInfo)>(null, v);
return v;
}
public void connectionClosed(javax.resource.spi.ConnectionEvent)
{
java.lang.Throwable v, v;
org.slf4j.Logger v, v;
javax.resource.spi.ConnectionEvent v;
java.lang.Object v, v;
org.apache.activemq.ra.SimpleConnectionManager v;
v := @this: org.apache.activemq.ra.SimpleConnectionManager;
v := @parameter: javax.resource.spi.ConnectionEvent;
label:
v = virtualinvoke v.<javax.resource.spi.ConnectionEvent: java.lang.Object getSource()>();
interfaceinvoke v.<javax.resource.spi.ManagedConnection: void cleanup()>();
label:
goto label;
label:
v := @caughtexception;
v = <org.apache.activemq.ra.SimpleConnectionManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String,java.lang.Throwable)>("Error occured during the cleanup of a managed connection: ", v);
label:
v = virtualinvoke v.<javax.resource.spi.ConnectionEvent: java.lang.Object getSource()>();
interfaceinvoke v.<javax.resource.spi.ManagedConnection: void destroy()>();
label:
goto label;
label:
v := @caughtexception;
v = <org.apache.activemq.ra.SimpleConnectionManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String,java.lang.Throwable)>("Error occured during the destruction of a managed connection: ", v);
label:
return;
catch javax.resource.ResourceException from label to label with label;
catch javax.resource.ResourceException from label to label with label;
}
public void localTransactionStarted(javax.resource.spi.ConnectionEvent)
{
javax.resource.spi.ConnectionEvent v;
org.apache.activemq.ra.SimpleConnectionManager v;
v := @this: org.apache.activemq.ra.SimpleConnectionManager;
v := @parameter: javax.resource.spi.ConnectionEvent;
return;
}
public void localTransactionCommitted(javax.resource.spi.ConnectionEvent)
{
javax.resource.spi.ConnectionEvent v;
org.apache.activemq.ra.SimpleConnectionManager v;
v := @this: org.apache.activemq.ra.SimpleConnectionManager;
v := @parameter: javax.resource.spi.ConnectionEvent;
return;
}
public void localTransactionRolledback(javax.resource.spi.ConnectionEvent)
{
javax.resource.spi.ConnectionEvent v;
org.apache.activemq.ra.SimpleConnectionManager v;
v := @this: org.apache.activemq.ra.SimpleConnectionManager;
v := @parameter: javax.resource.spi.ConnectionEvent;
return;
}
public void connectionErrorOccurred(javax.resource.spi.ConnectionEvent)
{
java.lang.Throwable v, v;
org.slf4j.Logger v, v, v;
javax.resource.spi.ConnectionEvent v;
java.lang.Exception v;
java.lang.Object v, v;
org.apache.activemq.ra.SimpleConnectionManager v;
v := @this: org.apache.activemq.ra.SimpleConnectionManager;
v := @parameter: javax.resource.spi.ConnectionEvent;
v = <org.apache.activemq.ra.SimpleConnectionManager: org.slf4j.Logger LOG>;
v = virtualinvoke v.<javax.resource.spi.ConnectionEvent: java.lang.Exception getException()>();
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String,java.lang.Throwable)>("Managed connection experiened an error: ", v);
label:
v = virtualinvoke v.<javax.resource.spi.ConnectionEvent: java.lang.Object getSource()>();
interfaceinvoke v.<javax.resource.spi.ManagedConnection: void cleanup()>();
label:
goto label;
label:
v := @caughtexception;
v = <org.apache.activemq.ra.SimpleConnectionManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String,java.lang.Throwable)>("Error occured during the cleanup of a managed connection: ", v);
label:
v = virtualinvoke v.<javax.resource.spi.ConnectionEvent: java.lang.Object getSource()>();
interfaceinvoke v.<javax.resource.spi.ManagedConnection: void destroy()>();
label:
goto label;
label:
v := @caughtexception;
v = <org.apache.activemq.ra.SimpleConnectionManager: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void warn(java.lang.String,java.lang.Throwable)>("Error occured during the destruction of a managed connection: ", v);
label:
return;
catch javax.resource.ResourceException from label to label with label;
catch javax.resource.ResourceException from label to label with label;
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/activemq/ra/SimpleConnectionManager;");
<org.apache.activemq.ra.SimpleConnectionManager: org.slf4j.Logger LOG> = v;
return;
}
}