ARTEMIS-1305 Server Frozen during shutdown if RA is retrying

This commit is contained in:
Clebert Suconic 2017-07-25 22:33:55 -04:00
parent 5325ca39c8
commit 7bf8e4e890
3 changed files with 59 additions and 87 deletions

View File

@ -1362,7 +1362,12 @@ public final class ServerLocatorImpl implements ServerLocatorInternal, Discovery
} }
for (ClientSessionFactory factory : clonedFactory) { for (ClientSessionFactory factory : clonedFactory) {
if (sendClose) { if (sendClose) {
factory.close(); try {
factory.close();
} catch (Throwable e) {
logger.debug(e.getMessage(), e);
factory.cleanup();
}
} else { } else {
factory.cleanup(); factory.cleanup();
} }

View File

@ -55,16 +55,14 @@ import org.apache.activemq.artemis.jms.client.ActiveMQXAConnection;
import org.apache.activemq.artemis.service.extensions.ServiceUtils; import org.apache.activemq.artemis.service.extensions.ServiceUtils;
import org.apache.activemq.artemis.service.extensions.xa.ActiveMQXAResourceWrapper; import org.apache.activemq.artemis.service.extensions.xa.ActiveMQXAResourceWrapper;
import org.apache.activemq.artemis.utils.VersionLoader; import org.apache.activemq.artemis.utils.VersionLoader;
import org.jboss.logging.Logger;
/** /**
* The managed connection * The managed connection
*/ */
public final class ActiveMQRAManagedConnection implements ManagedConnection, ExceptionListener { public final class ActiveMQRAManagedConnection implements ManagedConnection, ExceptionListener {
/** private static final Logger logger = Logger.getLogger(ActiveMQRAManagedConnection.class);
* Trace enabled
*/
private static boolean trace = ActiveMQRALogger.LOGGER.isTraceEnabled();
/** /**
* The managed connection factory * The managed connection factory
@ -141,7 +139,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
final ActiveMQResourceAdapter ra, final ActiveMQResourceAdapter ra,
final String userName, final String userName,
final String password) throws ResourceException { final String password) throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("constructor(" + mcf + ", " + cri + ", " + userName + ", ****)"); ActiveMQRALogger.LOGGER.trace("constructor(" + mcf + ", " + cri + ", " + userName + ", ****)");
} }
@ -188,7 +186,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
@Override @Override
public synchronized Object getConnection(final Subject subject, public synchronized Object getConnection(final Subject subject,
final ConnectionRequestInfo cxRequestInfo) throws ResourceException { final ConnectionRequestInfo cxRequestInfo) throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getConnection(" + subject + ", " + cxRequestInfo + ")"); ActiveMQRALogger.LOGGER.trace("getConnection(" + subject + ", " + cxRequestInfo + ")");
} }
@ -219,19 +217,10 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @throws ResourceException Failed to close one or more handles. * @throws ResourceException Failed to close one or more handles.
*/ */
private void destroyHandles() throws ResourceException { private void destroyHandles() throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("destroyHandles()"); ActiveMQRALogger.LOGGER.trace("destroyHandles()");
} }
try {
if (connection != null) {
connection.stop();
}
} catch (Throwable t) {
ActiveMQRALogger.LOGGER.trace("Ignored error stopping connection", t);
}
for (ActiveMQRASession session : handles) { for (ActiveMQRASession session : handles) {
session.destroy(); session.destroy();
} }
@ -246,7 +235,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public void destroy() throws ResourceException { public void destroy() throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("destroy()"); ActiveMQRALogger.LOGGER.trace("destroy()");
} }
@ -259,41 +248,21 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
try { try {
connection.setExceptionListener(null); connection.setExceptionListener(null);
} catch (JMSException e) { } catch (JMSException e) {
ActiveMQRALogger.LOGGER.debug("Error unsetting the exception listener " + this, e); logger.debug("Error unsetting the exception listener " + this, e);
} }
if (connection != null) { if (connection != null) {
connection.signalStopToAllSessions(); connection.signalStopToAllSessions();
} }
try {
connectionFactory.close();
} catch (Exception e) {
logger.debug(e.getMessage(), e);
}
destroyHandles(); destroyHandles();
try { try {
/**
* (xa|nonXA)Session.close() may NOT be called BEFORE connection.close()
* <p>
* If the ClientSessionFactory is trying to fail-over or reconnect with -1 attempts, and
* one calls session.close() it may effectively dead-lock.
* <p>
* connection close will close the ClientSessionFactory which will close all sessions.
*/
if (connection != null) {
connection.close();
}
// The following calls should not be necessary, as the connection should close the
// ClientSessionFactory, which will close the sessions.
try {
if (nonXAsession != null) {
nonXAsession.close();
}
if (xaSession != null) {
xaSession.close();
}
} catch (JMSException e) {
ActiveMQRALogger.LOGGER.debug("Error closing session " + this, e);
}
// we must close the ActiveMQConnectionFactory because it contains a ServerLocator // we must close the ActiveMQConnectionFactory because it contains a ServerLocator
if (connectionFactory != null) { if (connectionFactory != null) {
ra.closeConnectionFactory(mcf.getProperties()); ra.closeConnectionFactory(mcf.getProperties());
@ -310,7 +279,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public void cleanup() throws ResourceException { public void cleanup() throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("cleanup()"); ActiveMQRALogger.LOGGER.trace("cleanup()");
} }
@ -340,7 +309,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public void associateConnection(final Object obj) throws ResourceException { public void associateConnection(final Object obj) throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("associateConnection(" + obj + ")"); ActiveMQRALogger.LOGGER.trace("associateConnection(" + obj + ")");
} }
@ -361,9 +330,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
if (tx != null) { if (tx != null) {
int status = tx.getStatus(); int status = tx.getStatus();
// Only allow states that will actually succeed // Only allow states that will actually succeed
if (status != Status.STATUS_ACTIVE && status != Status.STATUS_PREPARING && if (status != Status.STATUS_ACTIVE && status != Status.STATUS_PREPARING && status != Status.STATUS_PREPARED && status != Status.STATUS_COMMITTING) {
status != Status.STATUS_PREPARED &&
status != Status.STATUS_COMMITTING) {
throw new javax.jms.IllegalStateException("Transaction " + tx + " not active"); throw new javax.jms.IllegalStateException("Transaction " + tx + " not active");
} }
} }
@ -379,7 +346,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* Aqquire a lock on the managed connection * Aqquire a lock on the managed connection
*/ */
protected void lock() { protected void lock() {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("lock()"); ActiveMQRALogger.LOGGER.trace("lock()");
} }
@ -392,7 +359,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @throws JMSException Thrown if an error occurs * @throws JMSException Thrown if an error occurs
*/ */
protected void tryLock() throws JMSException { protected void tryLock() throws JMSException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("tryLock()"); ActiveMQRALogger.LOGGER.trace("tryLock()");
} }
@ -414,7 +381,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* Unlock the managed connection * Unlock the managed connection
*/ */
protected void unlock() { protected void unlock() {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("unlock()"); ActiveMQRALogger.LOGGER.trace("unlock()");
} }
@ -428,7 +395,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public void addConnectionEventListener(final ConnectionEventListener l) { public void addConnectionEventListener(final ConnectionEventListener l) {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("addConnectionEventListener(" + l + ")"); ActiveMQRALogger.LOGGER.trace("addConnectionEventListener(" + l + ")");
} }
@ -442,7 +409,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public void removeConnectionEventListener(final ConnectionEventListener l) { public void removeConnectionEventListener(final ConnectionEventListener l) {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("removeConnectionEventListener(" + l + ")"); ActiveMQRALogger.LOGGER.trace("removeConnectionEventListener(" + l + ")");
} }
@ -457,7 +424,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public XAResource getXAResource() throws ResourceException { public XAResource getXAResource() throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getXAResource()"); ActiveMQRALogger.LOGGER.trace("getXAResource()");
} }
@ -476,7 +443,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
xaResource = ServiceUtils.wrapXAResource(activeMQRAXAResource, xaResourceProperties); xaResource = ServiceUtils.wrapXAResource(activeMQRAXAResource, xaResourceProperties);
} }
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("XAResource=" + xaResource); ActiveMQRALogger.LOGGER.trace("XAResource=" + xaResource);
} }
@ -491,13 +458,13 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public LocalTransaction getLocalTransaction() throws ResourceException { public LocalTransaction getLocalTransaction() throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getLocalTransaction()"); ActiveMQRALogger.LOGGER.trace("getLocalTransaction()");
} }
LocalTransaction tx = new ActiveMQRALocalTransaction(this); LocalTransaction tx = new ActiveMQRALocalTransaction(this);
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("LocalTransaction=" + tx); ActiveMQRALogger.LOGGER.trace("LocalTransaction=" + tx);
} }
@ -513,7 +480,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public ManagedConnectionMetaData getMetaData() throws ResourceException { public ManagedConnectionMetaData getMetaData() throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getMetaData()"); ActiveMQRALogger.LOGGER.trace("getMetaData()");
} }
@ -532,7 +499,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public void setLogWriter(final PrintWriter out) throws ResourceException { public void setLogWriter(final PrintWriter out) throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("setLogWriter(" + out + ")"); ActiveMQRALogger.LOGGER.trace("setLogWriter(" + out + ")");
} }
} }
@ -545,7 +512,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
@Override @Override
public PrintWriter getLogWriter() throws ResourceException { public PrintWriter getLogWriter() throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getLogWriter()"); ActiveMQRALogger.LOGGER.trace("getLogWriter()");
} }
@ -562,12 +529,12 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
if (ActiveMQConnection.EXCEPTION_FAILOVER.equals(exception.getErrorCode())) { if (ActiveMQConnection.EXCEPTION_FAILOVER.equals(exception.getErrorCode())) {
return; return;
} }
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("onException(" + exception + ")"); ActiveMQRALogger.LOGGER.trace("onException(" + exception + ")");
} }
if (isDestroyed.get()) { if (isDestroyed.get()) {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("Ignoring error on already destroyed connection " + this, exception); ActiveMQRALogger.LOGGER.trace("Ignoring error on already destroyed connection " + this, exception);
} }
return; return;
@ -578,7 +545,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
try { try {
connection.setExceptionListener(null); connection.setExceptionListener(null);
} catch (JMSException e) { } catch (JMSException e) {
ActiveMQRALogger.LOGGER.debug("Unable to unset exception listener", e); logger.debug("Unable to unset exception listener", e);
} }
ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_ERROR_OCCURRED, exception); ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_ERROR_OCCURRED, exception);
@ -593,13 +560,13 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
*/ */
protected Session getSession() throws JMSException { protected Session getSession() throws JMSException {
if (xaResource != null && inManagedTx) { if (xaResource != null && inManagedTx) {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getSession() -> XA session " + xaSession.getSession()); ActiveMQRALogger.LOGGER.trace("getSession() -> XA session " + xaSession.getSession());
} }
return xaSession.getSession(); return xaSession.getSession();
} else { } else {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getSession() -> non XA session " + nonXAsession); ActiveMQRALogger.LOGGER.trace("getSession() -> non XA session " + nonXAsession);
} }
@ -613,7 +580,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @param event The event to send. * @param event The event to send.
*/ */
protected void sendEvent(final ConnectionEvent event) { protected void sendEvent(final ConnectionEvent event) {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("sendEvent(" + event + ")"); ActiveMQRALogger.LOGGER.trace("sendEvent(" + event + ")");
} }
@ -656,7 +623,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @param handle The handle to remove. * @param handle The handle to remove.
*/ */
protected void removeHandle(final ActiveMQRASession handle) { protected void removeHandle(final ActiveMQRASession handle) {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("removeHandle(" + handle + ")"); ActiveMQRALogger.LOGGER.trace("removeHandle(" + handle + ")");
} }
@ -669,7 +636,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @return The connection request info for this connection. * @return The connection request info for this connection.
*/ */
protected ActiveMQRAConnectionRequestInfo getCRI() { protected ActiveMQRAConnectionRequestInfo getCRI() {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getCRI()"); ActiveMQRALogger.LOGGER.trace("getCRI()");
} }
@ -682,7 +649,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @return The connection factory for this connection. * @return The connection factory for this connection.
*/ */
protected ActiveMQRAManagedConnectionFactory getManagedConnectionFactory() { protected ActiveMQRAManagedConnectionFactory getManagedConnectionFactory() {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getManagedConnectionFactory()"); ActiveMQRALogger.LOGGER.trace("getManagedConnectionFactory()");
} }
@ -695,7 +662,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @throws JMSException Thrown if the connection can't be started * @throws JMSException Thrown if the connection can't be started
*/ */
void start() throws JMSException { void start() throws JMSException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("start()"); ActiveMQRALogger.LOGGER.trace("start()");
} }
@ -710,7 +677,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @throws JMSException Thrown if the connection can't be stopped * @throws JMSException Thrown if the connection can't be stopped
*/ */
void stop() throws JMSException { void stop() throws JMSException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("stop()"); ActiveMQRALogger.LOGGER.trace("stop()");
} }
@ -725,7 +692,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @return The user name * @return The user name
*/ */
protected String getUserName() { protected String getUserName() {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("getUserName()"); ActiveMQRALogger.LOGGER.trace("getUserName()");
} }
@ -738,7 +705,7 @@ public final class ActiveMQRAManagedConnection implements ManagedConnection, Exc
* @throws ResourceException Thrown if a connection couldn't be created * @throws ResourceException Thrown if a connection couldn't be created
*/ */
private void setup() throws ResourceException { private void setup() throws ResourceException {
if (ActiveMQRAManagedConnection.trace) { if (logger.isTraceEnabled()) {
ActiveMQRALogger.LOGGER.trace("setup()"); ActiveMQRALogger.LOGGER.trace("setup()");
} }

View File

@ -295,7 +295,7 @@ public class ActiveMQActivation {
* @throws Exception Thrown if an error occurs * @throws Exception Thrown if an error occurs
*/ */
protected synchronized void setup() throws Exception { protected synchronized void setup() throws Exception {
ActiveMQRALogger.LOGGER.debug("Setting up " + spec); logger.debug("Setting up " + spec);
setupCF(); setupCF();
@ -346,14 +346,14 @@ public class ActiveMQActivation {
factory.getServerLocator().addClusterTopologyListener(new RebalancingListener()); factory.getServerLocator().addClusterTopologyListener(new RebalancingListener());
} }
ActiveMQRALogger.LOGGER.debug("Setup complete " + this); logger.debug("Setup complete " + this);
} }
/** /**
* Teardown the activation * Teardown the activation
*/ */
protected synchronized void teardown() { protected synchronized void teardown() {
ActiveMQRALogger.LOGGER.debug("Tearing down " + spec); logger.debug("Tearing down " + spec);
long timeout = factory == null ? ActiveMQClient.DEFAULT_CALL_TIMEOUT : factory.getCallTimeout(); long timeout = factory == null ? ActiveMQClient.DEFAULT_CALL_TIMEOUT : factory.getCallTimeout();
@ -442,7 +442,7 @@ public class ActiveMQActivation {
nodes.clear(); nodes.clear();
lastReceived = false; lastReceived = false;
ActiveMQRALogger.LOGGER.debug("Tearing down complete " + this); logger.debug("Tearing down complete " + this);
} }
protected void setupCF() throws Exception { protected void setupCF() throws Exception {
@ -486,7 +486,7 @@ public class ActiveMQActivation {
result.addMetaData(ClientSession.JMS_SESSION_CLIENT_ID_PROPERTY, clientID); result.addMetaData(ClientSession.JMS_SESSION_CLIENT_ID_PROPERTY, clientID);
} }
ActiveMQRALogger.LOGGER.debug("Using queue connection " + result); logger.debug("Using queue connection " + result);
return result; return result;
} catch (Throwable t) { } catch (Throwable t) {
@ -519,14 +519,14 @@ public class ActiveMQActivation {
} else { } else {
ctx = new InitialContext(spec.getParsedJndiParams()); ctx = new InitialContext(spec.getParsedJndiParams());
} }
ActiveMQRALogger.LOGGER.debug("Using context " + ctx.getEnvironment() + " for " + spec); logger.debug("Using context " + ctx.getEnvironment() + " for " + spec);
if (logger.isTraceEnabled()) { if (logger.isTraceEnabled()) {
logger.trace("setupDestination(" + ctx + ")"); logger.trace("setupDestination(" + ctx + ")");
} }
String destinationTypeString = spec.getDestinationType(); String destinationTypeString = spec.getDestinationType();
if (destinationTypeString != null && !destinationTypeString.trim().equals("")) { if (destinationTypeString != null && !destinationTypeString.trim().equals("")) {
ActiveMQRALogger.LOGGER.debug("Destination type defined as " + destinationTypeString); logger.debug("Destination type defined as " + destinationTypeString);
Class<?> destinationType; Class<?> destinationType;
if (Topic.class.getName().equals(destinationTypeString)) { if (Topic.class.getName().equals(destinationTypeString)) {
@ -536,7 +536,7 @@ public class ActiveMQActivation {
destinationType = Queue.class; destinationType = Queue.class;
} }
ActiveMQRALogger.LOGGER.debug("Retrieving " + destinationType.getName() + " \"" + destinationName + "\" from JNDI"); logger.debug("Retrieving " + destinationType.getName() + " \"" + destinationName + "\" from JNDI");
try { try {
destination = (ActiveMQDestination) ActiveMQRaUtils.lookup(ctx, destinationName, destinationType); destination = (ActiveMQDestination) ActiveMQRaUtils.lookup(ctx, destinationName, destinationType);
@ -547,7 +547,7 @@ public class ActiveMQActivation {
String calculatedDestinationName = destinationName.substring(destinationName.lastIndexOf('/') + 1); String calculatedDestinationName = destinationName.substring(destinationName.lastIndexOf('/') + 1);
ActiveMQRALogger.LOGGER.debug("Unable to retrieve " + destinationName + logger.debug("Unable to retrieve " + destinationName +
" from JNDI. Creating a new " + destinationType.getName() + " from JNDI. Creating a new " + destinationType.getName() +
" named " + calculatedDestinationName + " to be used by the MDB."); " named " + calculatedDestinationName + " to be used by the MDB.");
@ -559,8 +559,8 @@ public class ActiveMQActivation {
} }
} }
} else { } else {
ActiveMQRALogger.LOGGER.debug("Destination type not defined in MDB activation configuration."); logger.debug("Destination type not defined in MDB activation configuration.");
ActiveMQRALogger.LOGGER.debug("Retrieving " + Destination.class.getName() + " \"" + destinationName + "\" from JNDI"); logger.debug("Retrieving " + Destination.class.getName() + " \"" + destinationName + "\" from JNDI");
destination = (ActiveMQDestination) ActiveMQRaUtils.lookup(ctx, destinationName, Destination.class); destination = (ActiveMQDestination) ActiveMQRaUtils.lookup(ctx, destinationName, Destination.class);
if (destination instanceof Topic) { if (destination instanceof Topic) {
@ -646,7 +646,7 @@ public class ActiveMQActivation {
try { try {
Thread.sleep(setupInterval); Thread.sleep(setupInterval);
} catch (InterruptedException e) { } catch (InterruptedException e) {
ActiveMQRALogger.LOGGER.debug("Interrupted trying to reconnect " + spec, e); logger.debug("Interrupted trying to reconnect " + spec, e);
break; break;
} }