* in order to maintain a stable state in the
* system.
*/
public void run() {
ctx = new Context(message);
IParticipant iParticipant;
IResponseMaker iResponseMaker = null;
IMessage iMessage;
try {
if (ti == null) {
logger.error(transName+"|No se inicializó el Transaction Information|");
return;
}
if (logger.isDebugEnabled())
logger.debug(transName+"|Se inicia transacción:|" + ctx.getOriginalMessage());
// Cargo la clase de respuesta
iResponseMaker = (IResponseMaker) Class.forName(ti.getResponseClass().getClassName()).newInstance();
iResponseMaker.setProperties(ti.getResponseClass().getProperties());
// Cargo los participantes
for (ParticipantResponseMakerInformation piPart : ti.getParticipants()) {
try {
iParticipant = (IParticipant)Class.forName(piPart.getClassName()).newInstance();
iParticipant.setProperties(piPart.getProperties());
partInit.add(iParticipant);
} catch (Exception e) {
logger.error(transName+"| No se encontró la clase de un participante: "+e.getMessage()+"|");
return;
}