1 39 package org.objectweb.jotm.jta.jeremie; 40 41 import org.objectweb.jotm.Current; 42 import org.objectweb.jotm.TransactionContext; 43 44 49 public class JotmTransactionReceiver { 50 51 52 public JotmTransactionReceiver() { 53 } 54 55 58 public void received_request(TransactionContext pctx) { 59 Current ut = Current.getCurrent(); 61 if (ut != null) { 62 ut.setPropagationContext(pctx, false); 64 } 65 } 66 67 71 public TransactionContext sending_reply() { 72 TransactionContext pctx = null; 74 Current ut = Current.getCurrent(); 75 if (ut != null) { 76 pctx = ut.getPropagationContext(false); 77 } 78 if (pctx != null) { 79 ut.setPropagationContext(null, false); 82 } 83 return pctx; 84 } 85 86 } 87 | Popular Tags |