com.arjuna.ats.internal.jta.transaction.arjunacore.jca.XATerminatorImple.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(123)

本文整理了Java中com.arjuna.ats.internal.jta.transaction.arjunacore.jca.XATerminatorImple.<init>()方法的一些代码示例,展示了XATerminatorImple.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XATerminatorImple.<init>()方法的具体详情如下:
包路径:com.arjuna.ats.internal.jta.transaction.arjunacore.jca.XATerminatorImple
类名称:XATerminatorImple
方法名:<init>

XATerminatorImple.<init>介绍

暂无

代码示例

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

private static void initXATerminator()
{
  if(txType == null) {
    setTxType( guessTxType() );
  }
  TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
  
  if(txType == TxType.JTA)
  {
    // we are running in JTA mode
    xaTerminator = new XATerminatorImple();
  }
  else
  {
    // it's not JTA, so it must be JTAX. However, we are in the JTA module and
    // can't link against the JTS code so we need to do it the hard way...
    try
    {
      Class clazz = Class.forName("com.arjuna.ats.internal.jta.transaction.jts.jca.XATerminatorImple");
      xaTerminator = (XATerminator)clazz.newInstance();
    }
    catch(Exception e)
    {
      jtaLogger.i18NLogger.error_transaction_arjunacore_jca_SubordinationManager_terminatorfailure(e);
    }
  }
}

代码示例来源:origin: org.jboss.narayana.jta/jta

private static void initXATerminator()
{
  if(txType == null) {
    setTxType( guessTxType() );
  }
  TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
  
  if(txType == TxType.JTA)
  {
    // we are running in JTA mode
    xaTerminator = new XATerminatorImple();
  }
  else
  {
    // it's not JTA, so it must be JTAX. However, we are in the JTA module and
    // can't link against the JTS code so we need to do it the hard way...
    try
    {
      Class clazz = Class.forName("com.arjuna.ats.internal.jta.transaction.jts.jca.XATerminatorImple");
      xaTerminator = (XATerminator)clazz.newInstance();
    }
    catch(Exception e)
    {
      jtaLogger.i18NLogger.error_transaction_arjunacore_jca_SubordinationManager_terminatorfailure(e);
    }
  }
}

代码示例来源:origin: jbosstm/narayana

private static void initXATerminator()
{
  if(txType == null) {
    setTxType( guessTxType() );
  }
  TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
  
  if(txType == TxType.JTA)
  {
    // we are running in JTA mode
    xaTerminator = new XATerminatorImple();
  }
  else
  {
    // it's not JTA, so it must be JTAX. However, we are in the JTA module and
    // can't link against the JTS code so we need to do it the hard way...
    try
    {
      Class clazz = Class.forName("com.arjuna.ats.internal.jta.transaction.jts.jca.XATerminatorImple");
      xaTerminator = (XATerminator)clazz.newInstance();
    }
    catch(Exception e)
    {
      jtaLogger.i18NLogger.error_transaction_arjunacore_jca_SubordinationManager_terminatorfailure(e);
    }
  }
}

代码示例来源:origin: org.jboss.jbossts/jbossjta

private static void initXATerminator()
{
  if(txType == null) {
    setTxType( guessTxType() );
  }
  TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
  
  if(txType == TxType.JTA)
  {
    // we are running in JTA mode
    xaTerminator = new XATerminatorImple();
  }
  else
  {
    // it's not JTA, so it must be JTAX. However, we are in the JTA module and
    // can't link against the JTS code so we need to do it the hard way...
    try
    {
      Class clazz = Class.forName("com.arjuna.ats.internal.jta.transaction.jts.jca.XATerminatorImple");
      xaTerminator = (XATerminator)clazz.newInstance();
    }
    catch(Exception e)
    {
      jtaLogger.i18NLogger.error_transaction_arjunacore_jca_SubordinationManager_terminatorfailure(e);
    }
  }
}

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

private static void initXATerminator()
{
  if(txType == null) {
    setTxType( guessTxType() );
  }
  TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
  
  if(txType == TxType.JTA)
  {
    // we are running in JTA mode
    xaTerminator = new XATerminatorImple();
  }
  else
  {
    // it's not JTA, so it must be JTAX. However, we are in the JTA module and
    // can't link against the JTS code so we need to do it the hard way...
    try
    {
      Class clazz = Class.forName("com.arjuna.ats.internal.jta.transaction.jts.jca.XATerminatorImple");
      xaTerminator = (XATerminator)clazz.newInstance();
    }
    catch(Exception e)
    {
      jtaLogger.i18NLogger.error_transaction_arjunacore_jca_SubordinationManager_terminatorfailure(e);
    }
  }
}

代码示例来源:origin: jboss.jbossts/jbossjts

/**
 * @message com.arjuna.ats.internal.jta.transaction.arjunacore.jca.SubordinationManager.terminatorfailure Failed to create instance of XATerminator
 */
private static void initXATerminator()
{
  if(txType == null) {
    setTxType( guessTxType() );
  }
  TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
  
  if(txType == TxType.JTA)
  {
    // we are running in JTA mode
    xaTerminator = new XATerminatorImple();
  }
  else
  {
    // it's not JTA, so it must be JTAX. However, we are in the JTA module and
    // can't link against the JTS code so we need to do it the hard way...
    try
    {
      Class clazz = Class.forName("com.arjuna.ats.internal.jta.transaction.jts.jca.XATerminatorImple");
      xaTerminator = (XATerminator)clazz.newInstance();
    }
    catch(Exception e)
    {
      jtaLogger.loggerI18N.error("com.arjuna.ats.internal.jta.transaction.arjunacore.jca.SubordinationManager.terminatorfailure", e);
    }
  }
}

代码示例来源:origin: jbosstm/narayana

private static void initXATerminator()
{
  if(txType == null) {
    setTxType( guessTxType() );
  }
  TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager();
  
  if(txType == TxType.JTA)
  {
    // we are running in JTA mode
    xaTerminator = new XATerminatorImple();
  }
  else
  {
    // it's not JTA, so it must be JTAX. However, we are in the JTA module and
    // can't link against the JTS code so we need to do it the hard way...
    try
    {
      Class clazz = Class.forName("com.arjuna.ats.internal.jta.transaction.jts.jca.XATerminatorImple");
      xaTerminator = (XATerminator)clazz.newInstance();
    }
    catch(Exception e)
    {
      jtaLogger.i18NLogger.error_transaction_arjunacore_jca_SubordinationManager_terminatorfailure(e);
    }
  }
}

代码示例来源:origin: jbosstm/narayana

@Test
public void testUnknownTransaction () throws Exception
  XATerminatorImple term = new XATerminatorImple();
  XidImple xid = new XidImple(new Uid());

代码示例来源:origin: jbosstm/narayana

XATerminatorImple xa = new XATerminatorImple();

代码示例来源:origin: jbosstm/narayana

@Test
public void test () throws Exception
  XATerminatorImple term = new XATerminatorImple();
  XidImple xid = new XidImple(new Uid());
  SubordinationManager.getTransactionImporter().importTransaction(xid);

代码示例来源:origin: jbosstm/narayana

@Test
public void testInvalid () throws Exception
  XATerminatorImple term = new XATerminatorImple();
  XidImple xid = new XidImple(new Uid());

代码示例来源:origin: jbosstm/narayana

XATerminatorImple xaTerminator = new XATerminatorImple();
XidImple xid = new XidImple(new Uid());
XAResourceImple toCommit = new XAResourceImple(XAResource.XA_OK, XAResource.XA_OK);

代码示例来源:origin: jbosstm/narayana

@Test
public void testRecovery() throws Exception {
  Implementations.initialise();
  XATerminatorImple xa = new XATerminatorImple();
  Xid[] recover = xa.recover(XAResource.TMSTARTRSCAN);
  int initialLength = recover == null ? 0 : recover.length;

代码示例来源:origin: jbosstm/narayana

@Test
public void testFail () throws Exception
  XATerminatorImple term = new XATerminatorImple();
  XidImple xid = new XidImple(new Uid());
  SubordinationManager.getTransactionImporter().importTransaction(xid);

相关文章