Package org.omg.CosTransactions

Examples of org.omg.CosTransactions.Control


  private static ControlWrapper createControlWrapper(String ior) {
    org.omg.CORBA.Object obj = ORBManager.getORB().orb()
        .string_to_object(ior);

    Control control = org.omg.CosTransactions.ControlHelper.narrow(obj);
    if (control == null)
      log.warn("createProxy: ior not a control");

    return new ControlWrapper(control);
  }
View Full Code Here


             * Retrieve ORB and OA references
             */
            ORB orb = ORB.getInstance(PerformanceFramework.ORB_INSTANCE_NAME);
            OA oa = OA.getRootOA(orb);

            Control control = OTSManager.get_current().get_control();
            Coordinator coordinator = control.get_coordinator();

            DemoSubTranResource resource = new DemoSubTranResource();

            oa.objectIsReady(resource);
            SubtransactionAwareResource res = SubtransactionAwareResourceHelper.narrow(oa.corbaReference(resource));
View Full Code Here

             * Retrieve ORB and OA references
             */
            ORB orb = ORB.getInstance( PerformanceFramework.ORB_INSTANCE_NAME );
            OA oa = OA.getRootOA( orb );

            Control control = OTSManager.get_current().get_control();
            Coordinator coordinator = control.get_coordinator();

            DemoResource resource = new DemoResource();

            oa.objectIsReady(resource);
            Resource res = ResourceHelper.narrow(oa.corbaReference(resource));
View Full Code Here

      Transaction tx = tm.getTransaction();
      log.debug("have arjuna tx");
      TransactionImple atx = (TransactionImple) tx;
      ControlWrapper cw = atx.getControlWrapper();
      log.debug("lookup control");
      Control c = cw.get_control();
      String ior = ORBManager.getORB().orb().object_to_string(c);
      log.debug("getTransactionIOR: ior: " + ior);
      return ior;
    } else {
      return null;
View Full Code Here

  private static ControlWrapper createControlWrapper(String ior) {
    org.omg.CORBA.Object obj = ORBManager.getORB().orb()
        .string_to_object(ior);

    Control control = org.omg.CosTransactions.ControlHelper.narrow(obj);
    if (control == null)
      log.warn("createProxy: ior not a control");

    return new ControlWrapper(control);
  }
View Full Code Here

      Current current = OTS.get_current();

      current.begin();
      current.commit(true);

      Control control = current.suspend();

      correct = (control == null);

      if (correct)
      {
View Full Code Here

      boolean correct = true;

      Current current = OTS.get_current();

      Control control = current.suspend();

      correct = (control == null);

      if (correct)
      {
View Full Code Here

      boolean correct = true;

      Current current = OTS.get_current();

      current.begin();
      Control control = current.get_control();
      current.commit(false);

      try
      {
        current.resume(control);
View Full Code Here

      boolean correct = true;

      Current current = OTS.get_current();

      current.begin();
      Control control = current.get_control();
      current.rollback();

      try
      {
        current.resume(control);
View Full Code Here

      boolean correct = true;

      Current current = OTS.get_current();

      current.begin();
      Control control = current.get_control();
      current.commit(true);

      try
      {
        current.resume(control);
View Full Code Here

TOP

Related Classes of org.omg.CosTransactions.Control

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.