This closes #1330
This commit is contained in:
commit
90edd572f0
|
@ -77,6 +77,10 @@ public interface ActiveMQRALogger extends BasicLogger {
|
|||
@Message(id = 151006, value = "Cluster topology change detected. Re-balancing connections on even {0}.", format = Message.Format.MESSAGE_FORMAT)
|
||||
void rebalancingConnections(String event);
|
||||
|
||||
@LogMessage(level = Logger.Level.INFO)
|
||||
@Message(id = 151007, value = "Resource adaptor started", format = Message.Format.MESSAGE_FORMAT)
|
||||
void resourceAdaptorStarted();
|
||||
|
||||
@LogMessage(level = Logger.Level.WARN)
|
||||
@Message(id = 152001, value = "problem resetting xa session after failure", format = Message.Format.MESSAGE_FORMAT)
|
||||
void problemResettingXASession(@Cause Throwable t);
|
||||
|
@ -113,6 +117,14 @@ public interface ActiveMQRALogger extends BasicLogger {
|
|||
@Message(id = 152009, value = "Unable to validate properties", format = Message.Format.MESSAGE_FORMAT)
|
||||
void unableToValidateProperties(@Cause Exception e);
|
||||
|
||||
@LogMessage(level = Logger.Level.WARN)
|
||||
@Message(id = 152010, value = "Unable to clear the transaction", format = Message.Format.MESSAGE_FORMAT)
|
||||
void unableToClearTheTransaction(@Cause Exception e);
|
||||
|
||||
@LogMessage(level = Logger.Level.WARN)
|
||||
@Message(id = 152011, value = "Unable to close the factory", format = Message.Format.MESSAGE_FORMAT)
|
||||
void unableToCloseFactory(@Cause Throwable e);
|
||||
|
||||
@LogMessage(level = Logger.Level.ERROR)
|
||||
@Message(id = 154000, value = "Error while creating object Reference.", format = Message.Format.MESSAGE_FORMAT)
|
||||
void errorCreatingReference(@Cause Exception e);
|
||||
|
|
|
@ -251,7 +251,7 @@ public class ActiveMQResourceAdapter implements ResourceAdapter, Serializable {
|
|||
}
|
||||
}
|
||||
|
||||
ActiveMQRALogger.LOGGER.info("Resource adaptor started");
|
||||
ActiveMQRALogger.LOGGER.resourceAdaptorStarted();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -421,7 +421,7 @@ public class ActiveMQActivation {
|
|||
// closing the factory will help making sure pending threads are closed
|
||||
factory.close();
|
||||
} catch (Throwable e) {
|
||||
ActiveMQRALogger.LOGGER.warn(e);
|
||||
ActiveMQRALogger.LOGGER.unableToCloseFactory(e);
|
||||
}
|
||||
|
||||
factory = null;
|
||||
|
|
|
@ -342,7 +342,7 @@ public class ActiveMQMessageHandler implements MessageHandler, FailoverEventList
|
|||
tx.setRollbackOnly();
|
||||
}
|
||||
} catch (Exception e1) {
|
||||
ActiveMQRALogger.LOGGER.warn("unable to clear the transaction", e1);
|
||||
ActiveMQRALogger.LOGGER.unableToClearTheTransaction(e1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue