From 469be448d433c6cb81c498aae56207adfafee866 Mon Sep 17 00:00:00 2001 From: Robert Greig Date: Tue, 16 Jan 2007 17:29:24 +0000 Subject: QPID-245 reverted interop changes for the sake of JMS compliance. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@496785 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/qpid/client/BasicMessageProducer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'java/client/src') diff --git a/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java b/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java index 56b8f44e56..d531c9eef2 100644 --- a/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java +++ b/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java @@ -520,9 +520,10 @@ public class BasicMessageProducer extends Closeable implements org.apache.qpid.j checkTemporaryDestination(destination); origMessage.setJMSDestination(destination); - + AbstractJMSMessage message = convertToNativeMessage(origMessage); - message.getJmsContentHeaderProperties().setBytes(CustomJMSXProperty.JMSX_QPID_JMSDESTINATIONURL.getShortStringName(), destination.toByteEncoding()); + message.getJmsContentHeaderProperties().setBytes(CustomJMSXProperty.JMSX_QPID_JMSDESTINATIONURL. + getShortStringName(), destination.toByteEncoding()); // AMQP version change: Hardwire the version to 0-8 (major=8, minor=0) // TODO: Connect this to the session version obtained from ProtocolInitiation for this session. // Be aware of possible changes to parameter order as versions change. @@ -645,7 +646,7 @@ public class BasicMessageProducer extends Closeable implements org.apache.qpid.j int length = (remaining >= framePayloadMax) ? (int) framePayloadMax : (int) remaining; payload.limit(payload.position() + length); frames[i] = ContentBody.createAMQFrame(channelId,new ContentBody(payload.slice())); - + remaining -= length; } } -- cgit v1.2.1