1 39 package org.objectweb.jotm.jta.jeremie; 40 41 import org.objectweb.jotm.Current; 42 import org.objectweb.jotm.TransactionContext; 43 44 48 public class JotmTransactionSender { 49 50 51 public JotmTransactionSender() { 52 } 53 54 58 public TransactionContext sending_request() { 59 TransactionContext pctx = null; 61 Current ut = Current.getCurrent(); 62 if (ut != null) { 63 pctx = ut.getPropagationContext(true); 64 } 65 return pctx; 66 } 67 68 72 public void received_reply(TransactionContext pctx) { 73 Current ut = Current.getCurrent(); 74 if (ut != null) { 75 if (pctx != null) { 76 ut.setPropagationContext(pctx, true); 78 } 79 } 80 } 81 82 } 83 | Popular Tags |