本文整理了Java中com.arjuna.ats.jta.xa.XAModifier.createXid()
方法的一些代码示例,展示了XAModifier.createXid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XAModifier.createXid()
方法的具体详情如下:
包路径:com.arjuna.ats.jta.xa.XAModifier
类名称:XAModifier
方法名:createXid
[英]Given an Arjuna xid, create a local driver representation. Some drivers expect their own implementations to be used, despite the fact that the JTA does not mention this!
[中]给定Arjuna xid,创建本地驱动程序表示。一些驱动程序希望使用自己的实现,尽管JTA没有提到这一点!
代码示例来源:origin: jboss.jbossts/jbossjts
private final Xid createXid(boolean branch, XAModifier theModifier)
{
Xid xid = baseXid();
if (xid != null)
return xid;
xid = new XidImple(_theTransaction, branch);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
e.printStackTrace();
}
}
return xid;
}
代码示例来源:origin: jboss.jbossts/jbossjts
private final Xid createXid (boolean branch, XAModifier theModifier)
{
Xid jtaXid = baseXid();
if (jtaXid != null)
return jtaXid;
try
{
jtaXid = _theTransaction.get_xid(branch);
if (theModifier != null)
{
try
{
jtaXid = theModifier.createXid(jtaXid);
}
catch (Exception e)
{
e.printStackTrace();
}
}
return jtaXid;
}
catch (Exception e)
{
e.printStackTrace();
}
return null;
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
int eisName = 0;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
e.printStackTrace();
}
}
return xid;
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
int eisName = 0;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
e.printStackTrace();
}
}
return xid;
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
Xid xid = baseXid();
// We can have subordinate XIDs that can be editted
if (xid.getFormatId() != XATxConverter.FORMAT_ID)
return xid;
Integer eisName = null;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
xid = new XidImple(xid, branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
e.printStackTrace();
}
}
return xid;
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
Xid xid = baseXid();
// We can have subordinate XIDs that can be editted
if (xid.getFormatId() != XATxConverter.FORMAT_ID)
return xid;
Integer eisName = null;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
xid = new XidImple(xid, branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
e.printStackTrace();
}
}
return xid;
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
jtaXid = theModifier.createXid(jtaXid);
代码示例来源:origin: jbosstm/narayana
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
int eisName = 0;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(_theTransaction.get_uid(), branch, eisName, e);
}
}
return xid;
}
代码示例来源:origin: jbosstm/narayana
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
int eisName = 0;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(_theTransaction.get_uid(), branch, eisName, e);
}
}
return xid;
}
代码示例来源:origin: org.jboss.narayana.jta/jta
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
int eisName = 0;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(_theTransaction.get_uid(), branch, eisName, e);
}
}
return xid;
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
int eisName = 0;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(_theTransaction.get_uid(), branch, eisName, e);
}
}
return xid;
}
代码示例来源:origin: jbosstm/narayana
@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
Xid xid = baseXid();
// We can have subordinate XIDs that can be editted
if (xid.getFormatId() != XATxConverter.FORMAT_ID)
return xid;
Integer eisName = null;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
xid = new XidImple(xid, branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
jtaLogger.i18NLogger.warn_cant_create_xid_of_xid(xid, branch, eisName, e);
}
}
return xid;
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
Xid xid = baseXid();
// We can have subordinate XIDs that can be editted
if (xid.getFormatId() != XATxConverter.FORMAT_ID)
return xid;
Integer eisName = null;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
xid = new XidImple(xid, branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
jtaLogger.i18NLogger.warn_cant_create_xid_of_xid(xid, branch, eisName, e);
}
}
return xid;
}
代码示例来源:origin: org.jboss.narayana.jta/jta
@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
Xid xid = baseXid();
// We can have subordinate XIDs that can be editted
if (xid.getFormatId() != XATxConverter.FORMAT_ID)
return xid;
Integer eisName = null;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
xid = new XidImple(xid, branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
jtaLogger.i18NLogger.warn_cant_create_xid_of_xid(xid, branch, eisName, e);
}
}
return xid;
}
代码示例来源:origin: jbosstm/narayana
@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
Xid xid = baseXid();
// We can have subordinate XIDs that can be editted
if (xid.getFormatId() != XATxConverter.FORMAT_ID)
return xid;
Integer eisName = null;
if(branch) {
if(_xaResourceRecordWrappingPlugin != null) {
eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
}
}
xid = new XidImple(xid, branch, eisName);
if (theModifier != null)
{
try
{
xid = theModifier.createXid((XidImple) xid);
}
catch (Exception e)
{
jtaLogger.i18NLogger.warn_cant_create_xid_of_xid(xid, branch, eisName, e);
}
}
return xid;
}
内容来源于网络,如有侵权,请联系作者删除!