boolean rollback = props.getRollbackPublisher();
// Send a message through the publisher and log any exceptions raised.
try
{
CircuitEnd end = getLocalPublisherCircuitEnd();
end.send(createTestMessage(end));
if (rollback)
{
end.getSession().rollback();
}
else if (transactional)
{
end.getSession().commit();
}
}
catch (JMSException e)
{
exceptionMonitor.onException(e);