本文整理了Java中org.jboss.tm.XAResourceWrapper
类的一些代码示例,展示了XAResourceWrapper
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XAResourceWrapper
类的具体详情如下:
包路径:org.jboss.tm.XAResourceWrapper
类名称:XAResourceWrapper
[英]A serializable XAResource wrapper.
[中]可序列化的XAResource包装器。
代码示例来源:origin: org.jboss.jbossts/jbossjts-integration
public void transcribeWrapperData(XAResourceRecord record) {
XAResource xaResource = (XAResource) record.value();
if (xaResource instanceof XAResourceWrapper) {
XAResourceWrapper xaResourceWrapper = (XAResourceWrapper) xaResource;
record.setProductName(xaResourceWrapper.getProductName());
record.setProductVersion(xaResourceWrapper.getProductVersion());
record.setJndiName(xaResourceWrapper.getJndiName());
}
}
代码示例来源:origin: org.jboss.jbossas/jboss-as-connector
public boolean isSameRM(XAResource resource) throws XAException
{
if (overrideRmValue != null)
{
if(log.isTraceEnabled())
{
log.trace("Executing isSameRM with override value" + overrideRmValue + " for XAResourceWrapper" + this);
}
return overrideRmValue.booleanValue();
}
else
{
if(resource instanceof XAResourceWrapper)
{
XAResourceWrapper other = (XAResourceWrapper)resource;
return xaResource.isSameRM(other.getResource());
}
else
{
return xaResource.isSameRM(resource);
}
}
}
代码示例来源:origin: org.jboss.narayana.jta/jta
private void saveContactedJndiName(final XAResource xaResource) {
if (!(xaResource instanceof XAResourceWrapper)) {
return;
}
final String jndiName = ((XAResourceWrapper) xaResource).getJndiName();
if (jndiName != null && jndiName.length() > 0) {
contactedJndiNames.add(jndiName);
}
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
private void saveContactedJndiName(final XAResource xaResource) {
if (!(xaResource instanceof XAResourceWrapper)) {
return;
}
final String jndiName = ((XAResourceWrapper) xaResource).getJndiName();
if (jndiName != null && jndiName.length() > 0) {
contactedJndiNames.add(jndiName);
}
}
代码示例来源:origin: org.jboss.jbossts/jbossjta-integration
public void transcribeWrapperData(XAResourceRecord record) {
XAResource xaResource = (XAResource) record.value();
if (xaResource instanceof XAResourceWrapper) {
XAResourceWrapper xaResourceWrapper = (XAResourceWrapper) xaResource;
record.setProductName(xaResourceWrapper.getProductName());
record.setProductVersion(xaResourceWrapper.getProductVersion());
record.setJndiName(xaResourceWrapper.getJndiName());
}
}
代码示例来源:origin: jbosstm/narayana
private void saveContactedJndiName(final XAResource xaResource) {
if (!(xaResource instanceof XAResourceWrapper)) {
return;
}
final String jndiName = ((XAResourceWrapper) xaResource).getJndiName();
if (jndiName != null && jndiName.length() > 0) {
contactedJndiNames.add(jndiName);
}
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-integration
public void transcribeWrapperData(XAResourceRecord record) {
XAResource xaResource = (XAResource) record.value();
if (xaResource instanceof XAResourceWrapper) {
XAResourceWrapper xaResourceWrapper = (XAResourceWrapper) xaResource;
record.setProductName(xaResourceWrapper.getProductName());
record.setProductVersion(xaResourceWrapper.getProductVersion());
record.setJndiName(xaResourceWrapper.getJndiName());
}
}
代码示例来源:origin: jbosstm/narayana
private void saveContactedJndiName(final XAResource xaResource) {
if (!(xaResource instanceof XAResourceWrapper)) {
return;
}
final String jndiName = ((XAResourceWrapper) xaResource).getJndiName();
if (jndiName != null && jndiName.length() > 0) {
contactedJndiNames.add(jndiName);
}
}
代码示例来源:origin: jbosstm/narayana
@Override
public void transcribeWrapperData(final XAResourceRecord xaResourceRecord) {
final XAResource xaResource = (XAResource) xaResourceRecord.value();
if (xaResource instanceof XAResourceWrapper) {
XAResourceWrapper xaResourceWrapper = (XAResourceWrapper) xaResource;
xaResourceRecord.setProductName(xaResourceWrapper.getProductName());
xaResourceRecord.setProductVersion(xaResourceWrapper.getProductVersion());
xaResourceRecord.setJndiName(xaResourceWrapper.getJndiName());
}
}
代码示例来源:origin: jbosstm/narayana
String jndiName = ((XAResourceWrapper)xaRes).getJndiName();
if (commitMarkableResourceJNDINames.contains(jndiName)) {
try {
代码示例来源:origin: org.jboss.narayana.jta/jta
this.commitMarkableJndiName = xaResourceWrapper.getJndiName();
this.productName = xaResourceWrapper.getProductName();
this.productVersion = xaResourceWrapper.getProductVersion();
this.xid = xid;
this.basicAction = basicAction;
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
String jndiName = ((XAResourceWrapper)xaRes).getJndiName();
if (commitMarkableResourceJNDINames.contains(jndiName)) {
try {
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
this.commitMarkableJndiName = xaResourceWrapper.getJndiName();
this.productName = xaResourceWrapper.getProductName();
this.productVersion = xaResourceWrapper.getProductVersion();
this.xid = xid;
this.basicAction = basicAction;
代码示例来源:origin: jbosstm/narayana
String jndiName = ((XAResourceWrapper)xaRes).getJndiName();
if (commitMarkableResourceJNDINames.contains(jndiName)) {
try {
代码示例来源:origin: jbosstm/narayana
this.commitMarkableJndiName = xaResourceWrapper.getJndiName();
this.productName = xaResourceWrapper.getProductName();
this.productVersion = xaResourceWrapper.getProductVersion();
this.xid = xid;
this.basicAction = basicAction;
代码示例来源:origin: org.jboss.narayana.jta/jta
String jndiName = ((XAResourceWrapper)xaRes).getJndiName();
if (commitMarkableResourceJNDINames.contains(jndiName)) {
try {
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
this.commitMarkableJndiName = xaResourceWrapper.getJndiName();
this.productName = xaResourceWrapper.getProductName();
this.productVersion = xaResourceWrapper.getProductVersion();
this.xid = xid;
this.basicAction = basicAction;
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
String jndiName = ((XAResourceWrapper)xaRes).getJndiName();
if (commitMarkableResourceJNDINames.contains(jndiName)) {
try {
代码示例来源:origin: jbosstm/narayana
this.commitMarkableJndiName = xaResourceWrapper.getJndiName();
this.productName = xaResourceWrapper.getProductName();
this.productVersion = xaResourceWrapper.getProductVersion();
this.xid = xid;
this.basicAction = basicAction;
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-integration
public Integer getEISName(XAResource xaResource) throws IOException, ObjectStoreException {
if (xaResource instanceof XAResourceWrapper) {
initialize();
String jndiName = ((XAResourceWrapper) xaResource).getJndiName();
Integer key = nameToKey.get(jndiName);
if (key == null) {
synchronized (this) {
// Recheck the resource, we do this so that we don't need to
// synchronize if this is a read
key = nameToKey.get(jndiName);
if (key == null) {
key = nextKey.getAndIncrement();
keyToName.put(key, jndiName);
nameToKey.put(jndiName, key);
OutputObjectState oos = new OutputObjectState();
oos.packString(nodeIdentifier);
oos.packInt(key);
oos.packString(jndiName);
eisNameStore.write_committed(new Uid(), "EISNAME", oos);
eisNameStore.sync();
}
}
}
return key;
} else {
return 0;
}
}
内容来源于网络,如有侵权,请联系作者删除!