Examples of Current


Examples of org.omg.CosTransactions.Current

      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

      Control control = current.suspend();

      correct = (control == null);

      if (correct)
      {
View Full Code Here

Examples of org.omg.CosTransactions.Current

      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

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

      try
      {
        current.resume(control);
      }
      catch (InvalidControl invalidControl)
      {
        System.err.println("Failed to resume committed transaction!");
        correct = false;
View Full Code Here

Examples of org.omg.PortableInterceptor.Current

    /**
     * This method returns a thread specific PICurrent.
     */
    public Current getCurrent()
    {
        Current value = (Current)piCurrent.get();
        if (value == null)
        {
            value = getEmptyCurrent();
            piCurrent.set(value);
        }
View Full Code Here

Examples of org.omg.PortableInterceptor.Current

        ORB orb2 = ORB.init(new String[ 0 ], initialisers);

        try
          {
            // Set the initial slot values.
            Current current =
              CurrentHelper.narrow(orb.resolve_initial_references("PICurrent"));
            Current current2 =
              CurrentHelper.narrow(orb2.resolve_initial_references("PICurrent"));

            current.set_slot(ucInitialiser.slot_0, a0);
            current.set_slot(ucInitialiser.slot_1, a1);

            current2.set_slot(ucInitialiser.slot_0, a0);
            current2.set_slot(ucInitialiser.slot_1, a1);
          }
        catch (Exception e)
          {
            fail("Exception " + e + " while setting slots.");
            e.printStackTrace();
View Full Code Here

Examples of org.omg.PortableInterceptor.Current

      Csiv2Manager.setSecurityService(ss);


      // register JTS interceptors
      // first get hold of PICurrent to allocate a slot for JTS service.
      Current pic = (Current)info.resolve_initial_references("PICurrent");

      // allocate a PICurrent slotId for the transaction service.
      int[] slotIds = new int[2];
      slotIds[0] = info.allocate_slot_id();
      slotIds[1] = info.allocate_slot_id();
View Full Code Here

Examples of org.omg.PortableInterceptor.Current

                               CompletionStatus.COMPLETED_NO);
        }

        // get hold of PICurrent to allocate a slot for JTS service.

        Current pic = null;
        try {
            pic = (Current) info.resolve_initial_references("PICurrent");
        } catch (InvalidName e) {
            throw new INTERNAL(MinorCode.TSCreateFailed,
                               CompletionStatus.COMPLETED_NO);
View Full Code Here

Examples of org.omg.PortableServer.Current

                Repository ir = iri.getReference();
                homeInterfaceDef = InterfaceDefHelper.narrow(ir.lookup_id(homeRepositoryIds[0]));
            }

            // Get the POACurrent object
            Current poaCurrent = CurrentHelper.narrow(orb.resolve_initial_references("POACurrent"));

            // Instantiate home servant, bind it to the servant registry, and create CORBA reference to the EJBHome.
            final EjbCorbaServant homeServant = new EjbCorbaServant(poaCurrent, homeMethodMap, homeRepositoryIds, homeInterfaceDef,
                    orb, homeView.getValue(), factory, configuration, component.getTransactionManager(), module.getClassLoader(), true, securityDomain);
View Full Code Here

Examples of org.omg.PortableServer.Current

                Repository ir = iri.getReference();
                homeInterfaceDef = InterfaceDefHelper.narrow(ir.lookup_id(homeRepositoryIds[0]));
            }

            // Get the POACurrent object
            Current poaCurrent = CurrentHelper.narrow(orb.resolve_initial_references("POACurrent"));

            // Instantiate home servant, bind it to the servant registry, and create CORBA reference to the EJBHome.
            final EjbCorbaServant homeServant = new EjbCorbaServant(poaCurrent, homeMethodMap, homeRepositoryIds, homeInterfaceDef,
                    orb, homeView.getValue(), factory, configuration, component.getTransactionManager(), module.getClassLoader(), true, securityDomain);
View Full Code Here

Examples of org.omg.PortableServer.Current

    }

    public String getId(Map contextMap) {
        String id = null;
        try {
            Current currentPoa = (Current) orb
                .resolve_initial_references("POACurrent");
            byte[] idBytes = currentPoa.get_object_id();
            id = new String(idBytes); //NOPMD
        } catch (Exception e) {
            throw new CorbaBindingException("Unable to getId, current is unavailable, reason: "
                                             + e, e);
        }
View Full Code Here

Examples of org.omg.PortableServer.Current

    }

    public String getId(Map<String, Object> contextMap) {
        String id = null;
        try {
            Current currentPoa = (Current) orb
                .resolve_initial_references("POACurrent");
            byte[] idBytes = currentPoa.get_object_id();
            id = new String(idBytes); //NOPMD
        } catch (Exception e) {
            throw new CorbaBindingException("Unable to getId, current is unavailable, reason: "
                                             + e, e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.