congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ORBManager.getORB
Code IndexAdd Tabnine to your IDE (free)

How to use
getORB
method
in
com.arjuna.ats.internal.jts.ORBManager

Best Java code snippets using com.arjuna.ats.internal.jts.ORBManager.getORB (Showing top 20 results out of 315)

Refine searchRefine arrow

  • ORB.orb
origin: org.jboss.narayana.jts/narayana-jts-idlj

public RecoverableParsedIOR(String ior) {
  this((ORB)ORBManager.getORB().orb(), ior) ;
}
origin: jboss.jbossts/jbossjts

public RecoverableParsedIOR(String ior) {
  this((ORB)ORBManager.getORB().orb(), ior) ;
}
origin: org.jboss.narayana.jts/narayana-jts-idlj

private final Any packPropagationContext (PropagationContext ctx)
  {
  if (jtsLogger.logger.isTraceEnabled())
  {
    jtsLogger.logger.trace("InterpositionClientRequestInterceptorImpl.packPropagationContext ( "+ctx+" )");
  }

  Any data = ORBManager.getORB().orb().create_any();

  if (ctx != null)
    PropagationContextHelper.insert(data, ctx);

  return data;
  }

origin: org.jboss.narayana.jts/narayana-jts-idlj

private final Any packPropagationContext (PropagationContext ctx)
  {
  if (jtsLogger.logger.isTraceEnabled())
  {
    jtsLogger.logger.trace("InterpositionClientRequestInterceptorImpl.packPropagationContext ( "+ctx+" )");
  }

  Any data = ORBManager.getORB().orb().create_any();

  if (ctx != null)
    PropagationContextHelper.insert(data, ctx);

  return data;
  }

origin: org.jboss.narayana.jts/narayana-jts-integration

public TransIdentity getTransIdentity()
{
  return new TransIdentity(CoordinatorHelper.narrow(ORBManager.getORB().orb().string_to_object(_coordinator)),
      _terminator == null ? null : TerminatorHelper.narrow(ORBManager.getORB().orb().string_to_object(_terminator)),
      _otid);
}
origin: org.jboss.jbossts/jbossjts-integration

public TransIdentity getTransIdentity()
{
  return new TransIdentity(CoordinatorHelper.narrow(ORBManager.getORB().orb().string_to_object(_coordinator)),
      _terminator == null ? null : TerminatorHelper.narrow(ORBManager.getORB().orb().string_to_object(_terminator)),
      _otid);
}
origin: org.jboss.narayana.blacktie/blacktie-jatmibroker-xatmi

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);
}
origin: org.jboss.jbossts/jbossjts-integration

/**
 * Create a wrapper around a propagation context class
 * @param tpc
 */
public PropagationContextWrapper(PropagationContext tpc)
{
  this();
  _isNull = (tpc == null);
  if (tpc != null)
  {
    _current = new TransIdentityWrapper();
    _current._coordinator = ORBManager.getORB().orb().object_to_string(tpc.current.coord);
    _current.setOtid(tpc.current.otid);
    _timeout = tpc.timeout;
    if (_propagateFullContext)
    {
      _current._terminator = ORBManager.getORB().orb().object_to_string(tpc.current.term);
      _parents = new TransIdentityWrapper[tpc.parents.length];
      for (int count = 0; count < tpc.parents.length; count++)
      {
        _parents[count] = new TransIdentityWrapper();
        _parents[count]._coordinator = ORBManager.getORB().orb().object_to_string(tpc.parents[count].coord);
        _parents[count]._terminator = ORBManager.getORB().orb().object_to_string(tpc.parents[count].term);
        _parents[count].setOtid(tpc.parents[count].otid);
      }
    }
  }
}
origin: org.jboss.narayana.jts/narayana-jts-integration

/**
 * Create a wrapper around a propagation context class
 * @param tpc
 */
public PropagationContextWrapper(PropagationContext tpc)
{
  this();
  _isNull = (tpc == null);
  if (tpc != null)
  {
    _current = new TransIdentityWrapper();
    _current._coordinator = ORBManager.getORB().orb().object_to_string(tpc.current.coord);
    _current.setOtid(tpc.current.otid);
    _timeout = tpc.timeout;
    if (_propagateFullContext)
    {
      _current._terminator = ORBManager.getORB().orb().object_to_string(tpc.current.term);
      _parents = new TransIdentityWrapper[tpc.parents.length];
      for (int count = 0; count < tpc.parents.length; count++)
      {
        _parents[count] = new TransIdentityWrapper();
        _parents[count]._coordinator = ORBManager.getORB().orb().object_to_string(tpc.parents[count].coord);
        _parents[count]._terminator = ORBManager.getORB().orb().object_to_string(tpc.parents[count].term);
        _parents[count].setOtid(tpc.parents[count].otid);
      }
    }
  }
}
origin: jboss.jbossts/jbossjts

private final Any packPropagationContext (PropagationContext ctx)
  {
  if (jtsLogger.logger.isDebugEnabled())
  {
    jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PRIVATE,
          (com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS | com.arjuna.ats.jts.logging.FacilityCode.FAC_INTERCEPTOR), "InterpositionClientRequestInterceptorImpl.packPropagationContext ( "+ctx+" )");
  }

  Any data = ORBManager.getORB().orb().create_any();

  if (ctx != null)
    PropagationContextHelper.insert(data, ctx);

  return data;
  }

origin: jboss.jbossts/jbossjts

private final Any packPropagationContext (PropagationContext ctx)
  {
  if (jtsLogger.logger.isDebugEnabled())
  {
    jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PRIVATE,
          (com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS | com.arjuna.ats.jts.logging.FacilityCode.FAC_INTERCEPTOR), "InterpositionClientRequestInterceptorImpl.packPropagationContext ( "+ctx+" )");
  }

  Any data = ORBManager.getORB().orb().create_any();

  if (ctx != null)
    PropagationContextHelper.insert(data, ctx);

  return data;
  }

origin: org.jboss.narayana.jts/narayana-jts-idlj

  static String getIORFromString(org.omg.CORBA.ORB orb, String str, String Key )
  {
    com.sun.corba.se.spi.orb.ORB sun_orb = (com.sun.corba.se.spi.orb.ORB) orb;

    // calculate the new object key
    String object_key = JavaIdlRCServiceInit.RC_KEY;
    int position = object_key.indexOf(JavaIdlRCServiceInit.RC_ID);
    String new_object_key = object_key.substring(0, position).concat(Key);
//        org.omg.CORBA.Object corbject = ORBManager.getORB().orb().string_to_object(str);
    org.omg.CORBA.ORB orbImple = ORBManager.getORB().orb();
    org.omg.CORBA.Object corbject = orbImple.string_to_object(str); 

    com.sun.corba.se.spi.ior.IOR ior = IORFactories.getIOR(corbject);
    ObjectId oid = IORFactories.makeObjectId(new_object_key.getBytes(StandardCharsets.UTF_8));

    IORImpl new_ior = new IORImpl(sun_orb, RecoveryCoordinatorHelper.id(), ior.getIORTemplates(), oid);

    return new_ior.stringify();
  }

origin: org.jboss.narayana.blacktie/blacktie-jatmibroker-xatmi

/**
 * If the current transaction represents an OTS transaction then return it IOR
 * 
 * @return the IOR or null if the current transaction is not an OTS transaction
 * @throws NamingException
 * @throws org.omg.CORBA.SystemException
 * @throws SystemException
 * @throws Unavailable
 */
public static String getTransactionIOR() throws org.omg.CORBA.SystemException, SystemException, Unavailable {
  log.debug("getTransactionIOR");
  TransactionImpl curr = TransactionImpl.current();
  if (curr != null) {
    log.debug("have JtsTransactionImple");
    return curr.getControlIOR();
  } else if (hasTransaction()) {
    log.debug("have tx mgr");
    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;
  }
}
origin: org.jboss.narayana.jts/narayana-jts-idlj

org.omg.CORBA.ORB theOrb = ORBManager.getORB().orb();
origin: org.jboss.narayana.jts/narayana-jts-idlj

org.omg.CORBA.ORB theOrb = ORBManager.getORB().orb();
origin: org.jboss.narayana.jts/narayana-jts-idlj

public ContextManager ()
{
if (jtsLogger.logger.isTraceEnabled()) {
  jtsLogger.logger.trace("ContextManager::ContextManager ()");
}
try
{
  _piCurrent = org.omg.PortableInterceptor.CurrentHelper.narrow(ORBManager.getORB().orb().resolve_initial_references("PICurrent"));
}
catch (InvalidName ex)
{
  throw new FatalError("ContextManager "+jtsLogger.i18NLogger.get_context_picreffail()+" "+ex, ex);
}
catch (Exception ex)
{
  throw new FatalError("ContextManager "+jtsLogger.i18NLogger.get_context_picreffail()+" "+ex, ex);
}
}
origin: org.jboss.narayana.jts/narayana-jts-idlj

String new_ior = RecoverIOR.getIORFromString(ORBManager.getORB().orb(), ref_ReCoo, rcObjectId);
org.omg.CORBA.Object rcAsObject = ORBManager.getORB().orb().string_to_object(new_ior);
origin: jboss.jbossts/jbossjts

private final void associateContext () throws SystemException
{
if (_piCurrent != null)
{
  try
  {
  int slotId = OTSManager.getLocalSlotId();
  if (slotId != -1)
  {
    org.omg.CORBA.Any localDataAny = ORBManager.getORB().orb().create_any();
    localDataAny.insert_string(ThreadUtil.getThreadId());
    _piCurrent.set_slot(slotId, localDataAny);
  }
  }
  catch (InvalidSlot is)
  {
  // Something very wrong
  throw new org.omg.CORBA.INTERNAL();
  }
}
}
origin: org.jboss.narayana.jts/narayana-jts-idlj

/**
 * Although FactoryContactItem is not derived from StateManager, this
 * method has the equivalent signature and purpose (but different access)
 */
private boolean save_state (OutputObjectState objstate)
{
  // convert the information
  try {
    objstate.packInt(version);
    objstate.packLong(_creationTime.getTime());
    if (_factory != null) {
      String iorAsString = ORBManager.getORB().orb().object_to_string(_factory);
      objstate.packString(iorAsString);
    } else {
      objstate.packString("");
      objstate.packLong(_deadTime.getTime());
    }
    return true;
  }
  catch (java.io.IOException ex) {
    jtsLogger.i18NLogger.warn_recovery_contact_FactoryContactItem_1(ex);
  }
  catch (Exception exp) {
    jtsLogger.i18NLogger.warn_recovery_contact_FactoryContactItem_1(exp);
  }
  return false;
}
origin: org.jboss.narayana.jts/narayana-jts-idlj

public boolean save_state (OutputObjectState os, int ot)
{
  try
  {
    if (_recoveryCoordinator != null)
    {
      os.packBoolean(true);
      os.packString(ORBManager.getORB().orb().object_to_string(_recoveryCoordinator));
    }
    else
      os.packBoolean(false);
    return super.save_state(os, ot);
  }
  catch (IOException e)
  {
    jtsLogger.i18NLogger.warn_orbspecific_interposition_coordinator_generror("ServerTransaction.save_state", e);
  }
  return false;
}
com.arjuna.ats.internal.jtsORBManagergetORB

Popular methods of ORBManager

  • setORB
  • setPOA
  • getPOA
  • getServices
  • getTheORB
  • getThePOA
  • isInitialised
  • reset

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • startActivity (Activity)
  • compareTo (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JLabel (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now