Transaction tx = TransactionCoordination.getInstance().getTransaction();
if (tx != null)
{
if (tx.hasResource(queueManager))
{
final QueueSession queueSession = (QueueSession) tx.getResource(queueManager);
if (logger.isDebugEnabled())
{
logger.debug("Retrieved VM queue session " + queueSession + " from current transaction " + tx);
}
return queueSession;
}
}
//This get printed every second for every thread
// if (logger.isDebugEnabled())
// {
// logger.debug("Retrieving new VM queue session from queue manager");
// }
QueueSession session = queueManager.getQueueSession();
if (tx != null)
{
//This get printed every second for every thread
// if (logger.isDebugEnabled())
// {