IMessage m = (IMessage)((ObjectMessage)message).getObject();
if (logger.isDebugEnabled())
logger.debug(tmInformation.getIdtrn()+"|Mensaje recibido por el Trans.Manager|"+m.toString());
TransactionInformation ti = tmInformation.getTransactionInformation(m);
String trnName = tmInformation.getIdtrn()+"-" + new GregorianCalendar().getTimeInMillis();
Transaction trn = new Transaction(trnName, ti , message.getStringProperty("connection"));
AttributeChangeNotificationFilter nf = new AttributeChangeNotificationFilter();
nf.enableAttribute("TMState");
configurator.addNotificationListener((NotificationListener) trn, nf, this);
trn.setMessage(m);
new TransactionTimeOut(trn,ti.getTimeOut());
}catch (Exception e){
logger.error(tmInformation.getIdtrn()+"|"+e.getMessage()+"|");
}
}