diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-02-21 11:31:26 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2012-02-21 11:31:26 +0000 |
commit | 748af8154ecd05da73e9bbe599476028887fc6c5 (patch) | |
tree | c0875008da05ca3378fc81079cb6164838ff1a2b /sca-java-2.x/trunk/modules | |
parent | e4d4979293ce33727d6867b7304ab5c693af39ba (diff) |
TUSCANY-4018 - Apply Jennifers patch to correct the setting of reponse JMS header values
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1291715 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportServiceInterceptor.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportServiceInterceptor.java b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportServiceInterceptor.java index 549be1552d..214e2b7324 100644 --- a/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportServiceInterceptor.java +++ b/sca-java-2.x/trunk/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/transport/TransportServiceInterceptor.java @@ -192,12 +192,9 @@ public class TransportServiceInterceptor extends InterceptorAsyncImpl { MessageProducer producer = session.createProducer(replyDest); // Set jms header attributes in producer, not message. - int deliveryMode = requestJMSMsg.getJMSDeliveryMode(); - producer.setDeliveryMode(deliveryMode); - int deliveryPriority = requestJMSMsg.getJMSPriority(); - producer.setPriority(deliveryPriority); - long timeToLive = requestJMSMsg.getJMSExpiration(); - producer.setTimeToLive(timeToLive); + producer.setDeliveryMode(responseJMSMsg.getJMSDeliveryMode()); + producer.setPriority(responseJMSMsg.getJMSPriority()); + producer.setTimeToLive(responseJMSMsg.getJMSExpiration()); producer.send((javax.jms.Message)msg.getBody()); |