Xid[] recover(int flag, String parentName) throws XAException;
public Xid[] recover(final int flag) throws XAException { return transactionContext.getRecoveryInterface().recover(flag); }
try { xids = recoverable.recover(XAResource.TMSTARTRSCAN, finalParentName); } catch (XAException e) { writeExceptionResponse(M_RESP_XA_RECOVER, invId, e); xids = recoverable.recover(XAResource.TMNOFLAGS, finalParentName); } catch (XAException e) { try { recoverable.recover(XAResource.TMENDRSCAN, finalParentName); writeExceptionResponse(M_RESP_XA_RECOVER, invId, e); } catch (XAException e1) { xids = recoverable.recover(XAResource.TMENDRSCAN, finalParentName); } catch (XAException e) { try { recoverable.recover(XAResource.TMENDRSCAN, finalParentName); writeExceptionResponse(M_RESP_XA_RECOVER, invId, e); } catch (XAException e1) { log.outboundException(e); try { recoverable.recover(XAResource.TMENDRSCAN); } catch (XAException e1) {
final Xid[] recoveryList = transactionContext.getRecoveryInterface().recover(flags, parentName); final ByteArrayOutputStream out = new ByteArrayOutputStream(); Marshaller marshaller = MARSHALLER_FACTORY.createMarshaller(createMarshallingConf());
void handleTxnRecoverRequest(final int invId, final MessageInputStream message) throws IOException { final String parentName = message.readUTF(); final int flags = message.readInt(); final Xid[] xids; try { xids = transactionServer.getTransactionService().getTransactionContext().getRecoveryInterface().recover(flags, parentName); } catch (XAException e) { writeFailedResponse(invId, e); return; } try (MessageOutputStream os = messageTracker.openMessageUninterruptibly()) { os.writeByte(Protocol.TXN_RECOVERY_RESPONSE); os.writeShort(invId); PackedInteger.writePackedInteger(os, xids.length); final Marshaller marshaller = marshallerFactory.createMarshaller(configuration); marshaller.start(new NoFlushByteOutput(Marshalling.createByteOutput(os))); for (Xid xid : xids) { marshaller.writeObject(new XidTransactionID(xid)); } marshaller.finish(); } catch (IOException e) { // nothing to do at this point; the client doesn't want the response Logs.REMOTING.trace("EJB transaction response write failed", e); } }
Xid[] recover(int flag, String parentName) throws XAException;
Xid[] recover(int flag, String parentName) throws XAException;
public Xid[] recover(final int flag) throws XAException { return transactionContext.getRecoveryInterface().recover(flag); }
public Xid[] recover(final int flag) throws XAException { return transactionContext.getRecoveryInterface().recover(flag); }
try { xids = recoverable.recover(XAResource.TMSTARTRSCAN, finalParentName); } catch (XAException e) { writeExceptionResponse(M_RESP_XA_RECOVER, invId, e); xids = recoverable.recover(XAResource.TMNOFLAGS, finalParentName); } catch (XAException e) { try { recoverable.recover(XAResource.TMENDRSCAN, finalParentName); writeExceptionResponse(M_RESP_XA_RECOVER, invId, e); } catch (XAException e1) { xids = recoverable.recover(XAResource.TMENDRSCAN, finalParentName); } catch (XAException e) { try { recoverable.recover(XAResource.TMENDRSCAN, finalParentName); writeExceptionResponse(M_RESP_XA_RECOVER, invId, e); } catch (XAException e1) { log.outboundException(e); try { recoverable.recover(XAResource.TMENDRSCAN); } catch (XAException e1) {
try { xids = recoverable.recover(XAResource.TMSTARTRSCAN, finalParentName); } catch (XAException e) { writeExceptionResponse(M_RESP_XA_RECOVER, invId, e); xids = recoverable.recover(XAResource.TMNOFLAGS, finalParentName); } catch (XAException e) { try { recoverable.recover(XAResource.TMENDRSCAN, finalParentName); writeExceptionResponse(M_RESP_XA_RECOVER, invId, e); } catch (XAException e1) { xids = recoverable.recover(XAResource.TMENDRSCAN, finalParentName); } catch (XAException e) { try { recoverable.recover(XAResource.TMENDRSCAN, finalParentName); writeExceptionResponse(M_RESP_XA_RECOVER, invId, e); } catch (XAException e1) { log.outboundException(e); try { recoverable.recover(XAResource.TMENDRSCAN); } catch (XAException e1) {
final Xid[] recoveryList = transactionContext.getRecoveryInterface().recover(flags, parentName); final ByteArrayOutputStream out = new ByteArrayOutputStream(); Marshaller marshaller = MARSHALLER_FACTORY.createMarshaller(createMarshallingConf());
void handleTxnRecoverRequest(final int invId, final MessageInputStream message) throws IOException { final String parentName = message.readUTF(); final int flags = message.readInt(); final Xid[] xids; try { xids = transactionServer.getTransactionService().getTransactionContext().getRecoveryInterface().recover(flags, parentName); } catch (XAException e) { writeFailedResponse(invId, e); return; } try (MessageOutputStream os = messageTracker.openMessageUninterruptibly()) { os.writeByte(Protocol.TXN_RECOVERY_RESPONSE); os.writeShort(invId); PackedInteger.writePackedInteger(os, xids.length); final Marshaller marshaller = marshallerFactory.createMarshaller(configuration); marshaller.start(new NoFlushByteOutput(Marshalling.createByteOutput(os))); for (Xid xid : xids) { marshaller.writeObject(new XidTransactionID(xid)); } marshaller.finish(); } catch (IOException e) { // nothing to do at this point; the client doesn't want the response Logs.REMOTING.trace("EJB transaction response write failed", e); } }
void handleTxnRecoverRequest(final int invId, final MessageInputStream message) throws IOException { final String parentName = message.readUTF(); final int flags = message.readInt(); final Xid[] xids; try { xids = transactionServer.getTransactionService().getTransactionContext().getRecoveryInterface().recover(flags, parentName); } catch (XAException e) { writeFailedResponse(invId, e); return; } try (MessageOutputStream os = messageTracker.openMessageUninterruptibly()) { os.writeByte(Protocol.TXN_RECOVERY_RESPONSE); os.writeShort(invId); PackedInteger.writePackedInteger(os, xids.length); final Marshaller marshaller = marshallerFactory.createMarshaller(configuration); marshaller.start(new NoFlushByteOutput(Marshalling.createByteOutput(os))); for (Xid xid : xids) { marshaller.writeObject(new XidTransactionID(xid)); } marshaller.finish(); } catch (IOException e) { // nothing to do at this point; the client doesn't want the response Logs.REMOTING.trace("EJB transaction response write failed", e); } }