gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-27 00:05:05 28 4
gpt4 key购买 nike

本文整理了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);

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com