From 748af8154ecd05da73e9bbe599476028887fc6c5 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 21 Feb 2012 11:31:26 +0000 Subject: 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 --- .../sca/binding/jms/transport/TransportServiceInterceptor.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'sca-java-2.x/trunk/modules') 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()); -- cgit v1.2.3