TransactionTemplate tt = new TransactionTemplate(endpoint.getTransactionConfig(), receiver.getConnector().getMuleContext());
// Receive messages and process them in a single transaction
// Do not enable threading here, but serveral workers
// may have been started
TransactionCallback<?> cb = new TransactionCallback()
{
public Object doInTransaction() throws Exception
{
Transaction tx = TransactionCoordination.getInstance().getTransaction();
if (tx != null)