| 83,9 → 83,6 |
| * empty constructor for extarenalizable |
| */ |
| public JTATransactionServiceContext() { |
| if (TraceTm.jta.isDebugEnabled()) { |
| TraceTm.jta.debug("JTATransactionServiceContext constructor"); |
| } |
| this.context_id = JTAClientTransactionInterceptor.TX_CTX_ID; |
| } |
| |
| 93,9 → 90,6 |
| * the JServiceContext id |
| */ |
| public int getContextId() { |
| if (TraceTm.jta.isDebugEnabled()) { |
| TraceTm.jta.debug("JTATransactionServiceContext.getContextId()"); |
| } |
| return context_id; |
| } |
| |
| 105,9 → 99,6 |
| * @param isReply boolean is reply indicator |
| */ |
| public void setContext(TransactionContext txCtx, boolean isReply) { |
| if (TraceTm.jta.isDebugEnabled()) { |
| TraceTm.jta.debug("JTATransactionServiceContext.setContext()"); |
| } |
| this.txCtx = txCtx; |
| this.isReply = isReply; |
| } |
| 117,9 → 108,6 |
| * @return TransactionContext the Transaction context |
| */ |
| public TransactionContext getTransactionContext() { |
| if (TraceTm.jta.isDebugEnabled()) { |
| TraceTm.jta.debug("JTATransactionServiceContext.getTransactionContext()"); |
| } |
| return txCtx; |
| } |
| |
| 129,9 → 117,6 |
| */ |
| public void readExternal(ObjectInput in) |
| throws IOException, ClassNotFoundException { |
| if (TraceTm.jta.isDebugEnabled()) { |
| TraceTm.jta.debug("JTATransactionServiceContext.readExternal()"); |
| } |
| // read Xid |
| int fid = in.readInt(); |
| byte[] gti = new byte[in.readInt()]; |
| 151,9 → 136,6 |
| * @param out the object output |
| */ |
| public void writeExternal(ObjectOutput out) throws IOException { |
| if (TraceTm.jta.isDebugEnabled()) { |
| TraceTm.jta.debug("JTATransactionServiceContext.writeExternal()"); |
| } |
| // send Xid |
| Xid xid = txCtx.getXid(); |
| out.writeInt(xid.getFormatId()); |