//Note: This session is only used for
//TODO: JmsMessageDispatcher has similar code to figure out if session is in transaction
Session session = null;
JmsConnector connector = (JmsConnector) endpoint.getConnector();
session = connector.getSessionFromTransaction();
if (session != null)
{
transacted = true;
}