- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中com.arjuna.ats.jta.utils.XAHelper.xidToString()
方法的一些代码示例,展示了XAHelper.xidToString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XAHelper.xidToString()
方法的具体详情如下:
包路径:com.arjuna.ats.jta.utils.XAHelper
类名称:XAHelper
方法名:xidToString
[英]get a string representing anyones Xid similar too, but not the same as OTS_Transaction/xa/XID.toString()
[中]获取一个表示任意人Xid的字符串,该字符串也与OTS_Transaction/xa/Xid类似,但与OTS_Transaction/xa/Xid不同。toString()
代码示例来源:origin: org.jboss.jbossts/jbossjta
/**
* Commit the one phase resource.
* @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
*/
public int rollback()
{
try
{
xaResource.rollback(xid) ;
return TwoPhaseOutcome.FINISH_OK ;
}
catch (final XAException xae)
{
jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
}
catch (final Throwable ex)
{
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
}
}
return TwoPhaseOutcome.FINISH_ERROR ;
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(e), e);
代码示例来源:origin: org.jboss.jbossts/jbosstxbridge
/**
* The participant should make permanent the work that it controls.
*
* @throws WrongStateException
* @throws SystemException
*/
public void commit() throws WrongStateException, SystemException
{
txbridgeLogger.logger.trace("BridgeDurableParticipant.commit(Xid="+xid+")");
try
{
xaTerminator.commit(xid, false);
txbridgeLogger.logger.trace("commit on Xid="+xid+" OK");
}
catch (XAException e)
{
txbridgeLogger.i18NLogger.error_ibdp_commitfailed(XAHelper.xidToString(xid), e);
}
finally
{
cleanupRefs();
}
}
代码示例来源:origin: org.jboss.narayana.jta/jta
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "< >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "< >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());
代码示例来源:origin: org.jboss.narayana.jta/jta
/**
* Commit the one phase resource.
* @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
*/
public int rollback()
{
try
{
xaResource.rollback(xid) ;
return TwoPhaseOutcome.FINISH_OK ;
}
catch (final XAException xae)
{
addDeferredThrowable(xae);
jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
}
catch (final Throwable ex)
{
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
}
}
return TwoPhaseOutcome.FINISH_ERROR ;
}
代码示例来源:origin: org.jboss.jbossts/jbosstxbridge
/**
* The participant should undo the work that it controls. The participant
* will then return an indication of whether or not it succeeded..
*
* @throws WrongStateException
* @throws SystemException
*/
public void rollback() throws WrongStateException, SystemException
{
txbridgeLogger.logger.trace("BridgeDurableParticipant.rollback(Xid="+xid+")");
try
{
xaTerminator.rollback(xid);
txbridgeLogger.logger.trace("rollback on Xid="+xid+" OK");
}
catch (XAException e)
{
txbridgeLogger.i18NLogger.error_ibdp_rollbackfailed(XAHelper.xidToString(xid), e);
}
finally
{
cleanupRefs();
}
}
代码示例来源:origin: jbosstm/narayana
jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(e), e);
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "< >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
/**
* Commit the one phase resource.
* @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
*/
public int rollback()
{
try
{
xaResource.rollback(xid) ;
return TwoPhaseOutcome.FINISH_OK ;
}
catch (final XAException xae)
{
addDeferredThrowable(xae);
jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
}
catch (final Throwable ex)
{
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
}
}
return TwoPhaseOutcome.FINISH_ERROR ;
}
代码示例来源:origin: org.jboss.jbossts/jbosstxbridge
/**
* Called by the RecoveryManager RECOVERY_BACKOFF_PERIOD seconds
* after the completion of the first pass
*/
@Override
public void periodicWorkSecondPass()
{
txbridgeLogger.logger.trace("InboundBridgeRecoveryManager.periodicWorkSecondPass()");
cleanupRecoveredParticipants();
// the XTS recovery module is registered and hence run before us. Therefore by the time we get here
// we know deserialize has been called for any BridgeDurableParticipant for which a log exists.
// thus if it's not in our participantsAwaitingRecovery list by now, it's presumed rollback.
orphanedXAResourcesAreIdentifiable = true;
// Inbound tx may have a JCA tx log but no corresponding XTS Participant (i.e. BridgeDurableParticipant) log.
// these can now be identified and rolled back.
List<Xid> indoubtSubordinates = getIndoubtSubordinates();
for(Xid xid : indoubtSubordinates) {
if(checkXid(xid) == XAResourceOrphanFilter.Vote.ROLLBACK) {
txbridgeLogger.logger.trace("rolling back orphaned subordinate tx "+xid);
try {
xaTerminator.rollback(xid);
} catch(XAException e) {
txbridgeLogger.i18NLogger.error_ibrm_rollbackerr(XAHelper.xidToString(xid), e);
}
}
}
}
代码示例来源:origin: org.jboss.narayana.jta/jta
jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(e), e);
代码示例来源:origin: jbosstm/narayana
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "< >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
/**
* Commit the one phase resource.
* @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
*/
public int rollback()
{
try
{
xaResource.rollback(xid) ;
return TwoPhaseOutcome.FINISH_OK ;
}
catch (final XAException xae)
{
addDeferredThrowable(xae);
jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
}
catch (final Throwable ex)
{
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
}
}
return TwoPhaseOutcome.FINISH_ERROR ;
}
代码示例来源:origin: org.jboss.jbossts/jbosstxbridge
txbridgeLogger.logger.trace("BridgeDurableParticipant.prepare(Xid="+xid+")");
if(result == XAResource.XA_OK)
txbridgeLogger.logger.trace("prepare on Xid="+xid+" returning Prepared");
return new Prepared();
txbridgeLogger.logger.trace("prepare on Xid="+xid+" returning ReadOnly");
return new ReadOnly();
txbridgeLogger.i18NLogger.warn_ibdp_aborted(XAHelper.xidToString(xid), e);
return new Aborted();
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(e), e);
代码示例来源:origin: jbosstm/narayana
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + xae.getMessage());
jtaLogger.i18NLogger.warn_resources_arjunacore_opcerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(xae), xae);
String xidString = xid == null ? "< >" : XAHelper.xidToString(xid);
String resourceString = xaResource == null ? "null XA resource" : xaResource.toString();
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") " + ex.getMessage());
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.commit(" + xid + ") called forget and got " + ex.getMessage());
代码示例来源:origin: jbosstm/narayana
/**
* Commit the one phase resource.
* @return TwoPhaseOutcome.FINISH_OK or TwoPhaseOutcome.FINISH_ERROR
*/
public int rollback()
{
try
{
xaResource.rollback(xid) ;
return TwoPhaseOutcome.FINISH_OK ;
}
catch (final XAException xae)
{
addDeferredThrowable(xae);
jtaLogger.i18NLogger.warn_resources_arjunacore_XAOnePhaseResource_rollbackexception(XAHelper.xidToString(xid), xae);
}
catch (final Throwable ex)
{
if (jtaLogger.logger.isTraceEnabled()) {
jtaLogger.logger.trace("XAOnePhaseResource.rollback(" + xid + ") " + ex.getMessage());
}
}
return TwoPhaseOutcome.FINISH_ERROR ;
}
代码示例来源:origin: org.jboss.jbossts/jbosstxbridge
txbridgeLogger.logger.trace("BridgeVolatileParticipant.prepare(Xid="+xid+")");
txbridgeLogger.i18NLogger.warn_ibvp_preparefailed(XAHelper.xidToString(xid), null);
inboundBridge.setRollbackOnly();
txbridgeLogger.i18NLogger.warn_ibvp_preparefailed(XAHelper.xidToString(xid), e);
try
txbridgeLogger.i18NLogger.warn_ibvp_stopfailed(XAHelper.xidToString(xid), e);
代码示例来源:origin: jbosstm/narayana
jtaLogger.i18NLogger.warn_resources_arjunacore_rollbackerror(XAHelper.xidToString(xid),
xaResource.toString(), XAHelper.printXAErrorCode(e), e);
我正在尝试开发一个连接到 Oracle 数据库的 Java EE 应用程序。我正在使用 ojdbc6 jar。我正在从属性文件中读取数据库信息。 package com.varun.util; imp
当我检查 JBoss 日志时,我看到了很多这样的错误 2012-03-29 12:01:27,358 WARN @ [com.arjuna.ats.jta.logging.loggerI18N] [
所以在我正在处理的一个项目中,我有一个由 TimerService 触发并执行更新某些数据的方法的 Seam 组件。此方法通常运行几秒钟,但有时可能需要几分钟。 我的问题是,如果此方法花费的时间太长,
本文整理了Java中com.arjuna.ats.jta.utils.XAHelper类的一些代码示例,展示了XAHelper类的具体用法。这些代码示例主要来源于Github/Stackoverflo
本文整理了Java中com.arjuna.ats.jta.xa.XidImple类的一些代码示例,展示了XidImple类的具体用法。这些代码示例主要来源于Github/Stackoverflow/M
本文整理了Java中com.arjuna.ats.jta.recovery.XAResourceRecovery类的一些代码示例,展示了XAResourceRecovery类的具体用法。这些代码示例主
本文整理了Java中com.arjuna.ats.jta.recovery.XAResourceRecoveryHelper类的一些代码示例,展示了XAResourceRecoveryHelper类的
本文整理了Java中com.arjuna.ats.jta.recovery.XAResourceOrphanFilter类的一些代码示例,展示了XAResourceOrphanFilter类的具体用法
本文整理了Java中com.arjuna.ats.jta.recovery.XARecoveryResource类的一些代码示例,展示了XARecoveryResource类的具体用法。这些代码示例主
本文整理了Java中com.arjuna.ats.internal.jta.XAResourceRecordMap类的一些代码示例,展示了XAResourceRecordMap类的具体用法。这些代码示
本文整理了Java中com.arjuna.ats.jta.recovery.XARecoveryResourceManager类的一些代码示例,展示了XARecoveryResourceManager
本文整理了Java中com.arjuna.ats.jta.resources.XAResourceMap类的一些代码示例,展示了XAResourceMap类的具体用法。这些代码示例主要来源于Githu
本文整理了Java中com.arjuna.ats.jta.xa.XAModifier类的一些代码示例,展示了XAModifier类的具体用法。这些代码示例主要来源于Github/Stackoverfl
我试图以 this here 的风格创建一个更复杂的跨域 Bean 验证.当我在验证我的实体实例时返回 false 时,问题很快就变成了一个问题,它被传递给了我的自定义 validator 。 因此,
本文整理了Java中com.arjuna.ats.internal.jta.utils.XAUtils类的一些代码示例,展示了XAUtils类的具体用法。这些代码示例主要来源于Github/Stack
本文整理了Java中com.arjuna.ats.internal.jta.resources.XAResourceErrorHandler类的一些代码示例,展示了XAResourceErrorHan
本文整理了Java中com.arjuna.ats.internal.jdbc.drivers.XADataSourceReflectionWrapper类的一些代码示例,展示了XADataSource
本文整理了Java中com.arjuna.ats.internal.jta.xa.XID类的一些代码示例,展示了XID类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Ma
本文整理了Java中com.arjuna.ats.jta.utils.XAHelper.xidToString()方法的一些代码示例,展示了XAHelper.xidToString()的具体用法。这些
本文整理了Java中com.arjuna.ats.jta.utils.XAHelper.sameXID()方法的一些代码示例,展示了XAHelper.sameXID()的具体用法。这些代码示例主要来源
我是一名优秀的程序员,十分优秀!