public void receiveException(JClientRequestInfo jri) throws IOException { if (TraceTm.jta.isDebugEnabled()) { TraceTm.jta.debug("JTAClientTransactionInterceptor.receiveException"); } if (current == null) { current = Current.getCurrent(); } if (current != null) { JTATransactionServiceContext jtasc = (JTATransactionServiceContext) jri.getReplyServiceContext( TX_CTX_ID); if (jtasc != null) { // put into the the Current object (true for client side context current.setPropagationContext( jtasc.getTransactionContext(), true); } } }
public void receiveOther(JClientRequestInfo jri) throws IOException { if (TraceTm.jta.isDebugEnabled()) { TraceTm.jta.debug("JTAClientTransactionInterceptor.receiveOther"); } if (current == null) { current = Current.getCurrent(); } if (current != null) { JTATransactionServiceContext jtasc = (JTATransactionServiceContext) jri.getReplyServiceContext( TX_CTX_ID); if (jtasc != null) { // put into the the Current object (true for client side context current.setPropagationContext( jtasc.getTransactionContext(), true); } } } }
/** * Receive reply interception * @param jri JClientRequestInfo the jrmp client info * @exception IOException if an exception occur with the ObjectOutput */ public void receiveReply(JClientRequestInfo jri) throws IOException { if (TraceTm.jta.isDebugEnabled()) { TraceTm.jta.debug("JTAClientTransactionInterceptor.receiveReply"); } if (current == null) { current = Current.getCurrent(); } if (current != null) { JTATransactionServiceContext jtasc = (JTATransactionServiceContext) jri.getReplyServiceContext( TX_CTX_ID); if (jtasc != null) { // put into the the Current object (true for client side context current.setPropagationContext( jtasc.getTransactionContext(), true); } } }