Package com.arjuna.mw.wscf.model.twophase.hls

Examples of com.arjuna.mw.wscf.model.twophase.hls.TwoPhaseHLS


  {
      synchronized (_implementations)
      {
    org.w3c.dom.Text child = DomUtil.getTextNode(protocol, CoordinatorXSD.coordinatorType);
    String protocolType = child.getNodeValue();
    TwoPhaseHLS coordHLS = (TwoPhaseHLS) _implementations.get(protocolType);
 
    if (coordHLS == null)
    {
        Object implementation = _protocolManager.getProtocolImplementation(protocol);

        if (implementation instanceof String)
        {
      Class c = Class.forName((String) implementation);

      coordHLS = (TwoPhaseHLS) c.newInstance();
        }
        else
      coordHLS = (TwoPhaseHLS) implementation;

        _implementations.put(protocolType, coordHLS);
    }
     
    return coordHLS.coordinatorManager();
      }
  }
  catch (ProtocolNotRegisteredException ex)
  {
      throw ex;
View Full Code Here


  {
      synchronized (_implementations)
      {
    org.w3c.dom.Text child = DomUtil.getTextNode(protocol, CoordinatorXSD.coordinatorType);
    String protocolType = child.getNodeValue();
    TwoPhaseHLS coordHLS = (TwoPhaseHLS) _implementations.get(protocolType);
 
    if (coordHLS == null)
    {
        Object implementation = _protocolManager.getProtocolImplementation(protocol);
   
        if (implementation instanceof String)
        {
      Class c = Class.forName((String) implementation);

      coordHLS = (TwoPhaseHLS) c.newInstance();
        }
        else
      coordHLS = (TwoPhaseHLS) implementation;

        _implementations.put(protocolType, coordHLS);
    }
     
    return coordHLS.userCoordinator();
      }
  }
  catch (ProtocolNotRegisteredException ex)
  {
      throw ex;
View Full Code Here

  {
      synchronized (_implementations)
      {
    org.w3c.dom.Text child = DomUtil.getTextNode(protocol, CoordinatorXSD.coordinatorType);
    String protocolType = child.getNodeValue();
    TwoPhaseHLS coordHLS = (TwoPhaseHLS) _implementations.get(protocolType);

    if (coordHLS == null)
    {
        Object implementation = _protocolManager.getProtocolImplementation(protocol);

        if (implementation instanceof String)
        {
      Class c = Class.forName((String) implementation);

      coordHLS = (TwoPhaseHLS) c.newInstance();
        }
        else
      coordHLS = (TwoPhaseHLS) implementation;

        _implementations.put(protocolType, coordHLS);
    }

    return coordHLS.coordinatorManager();
      }
  }
  catch (ProtocolNotRegisteredException ex)
  {
      throw ex;
View Full Code Here

  {
      synchronized (_implementations)
      {
    org.w3c.dom.Text child = DomUtil.getTextNode(protocol, CoordinatorXSD.coordinatorType);
    String protocolType = child.getNodeValue();
    TwoPhaseHLS coordHLS = (TwoPhaseHLS) _implementations.get(protocolType);

    if (coordHLS == null)
    {
        Object implementation = _protocolManager.getProtocolImplementation(protocol);

        if (implementation instanceof String)
        {
      Class c = Class.forName((String) implementation);

      coordHLS = (TwoPhaseHLS) c.newInstance();
        }
        else
      coordHLS = (TwoPhaseHLS) implementation;

        _implementations.put(protocolType, coordHLS);
    }

    return coordHLS.userCoordinator();
      }
  }
  catch (ProtocolNotRegisteredException ex)
  {
      throw ex;
View Full Code Here

  {
      synchronized (_implementations)
      {
    org.w3c.dom.Text child = DomUtil.getTextNode(protocol, CoordinatorXSD.coordinatorType);
    String protocolType = child.getNodeValue();
    TwoPhaseHLS coordHLS = (TwoPhaseHLS) _implementations.get(protocolType);
 
    if (coordHLS == null)
    {
        Object implementation = _protocolManager.getProtocolImplementation(protocol);

        if (implementation instanceof String)
        {
      Class c = Class.forName((String) implementation);

      coordHLS = (TwoPhaseHLS) c.newInstance();
        }
        else
      coordHLS = (TwoPhaseHLS) implementation;

        _implementations.put(protocolType, coordHLS);
    }
     
    return coordHLS.coordinatorManager();
      }
  }
  catch (ProtocolNotRegisteredException ex)
  {
      throw ex;
View Full Code Here

  {
      synchronized (_implementations)
      {
    org.w3c.dom.Text child = DomUtil.getTextNode(protocol, CoordinatorXSD.coordinatorType);
    String protocolType = child.getNodeValue();
    TwoPhaseHLS coordHLS = (TwoPhaseHLS) _implementations.get(protocolType);
 
    if (coordHLS == null)
    {
        Object implementation = _protocolManager.getProtocolImplementation(protocol);
   
        if (implementation instanceof String)
        {
      Class c = Class.forName((String) implementation);

      coordHLS = (TwoPhaseHLS) c.newInstance();
        }
        else
      coordHLS = (TwoPhaseHLS) implementation;

        _implementations.put(protocolType, coordHLS);
    }
     
    return coordHLS.userCoordinator();
      }
  }
  catch (ProtocolNotRegisteredException ex)
  {
      throw ex;
View Full Code Here

TOP

Related Classes of com.arjuna.mw.wscf.model.twophase.hls.TwoPhaseHLS

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.