Package jifx.transactionManager.interfaces

Examples of jifx.transactionManager.interfaces.IParticipant


   * 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;
        }
View Full Code Here

TOP

Related Classes of jifx.transactionManager.interfaces.IParticipant

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.