summaryrefslogtreecommitdiff
path: root/java/client
diff options
context:
space:
mode:
authorRobert Greig <rgreig@apache.org>2007-01-16 17:29:24 +0000
committerRobert Greig <rgreig@apache.org>2007-01-16 17:29:24 +0000
commit469be448d433c6cb81c498aae56207adfafee866 (patch)
tree73e2f2f1c76fb26ed8f9e75b2262bd13d5ebdca3 /java/client
parent6bd699c9e392eb83f837c4863989c32e7afcf3fe (diff)
downloadqpid-python-469be448d433c6cb81c498aae56207adfafee866.tar.gz
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
Diffstat (limited to 'java/client')
-rw-r--r--java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java7
1 files changed, 4 insertions, 3 deletions
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;
}
}