summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-04-26 12:16:37 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-04-26 12:16:37 +0000
commit6ac1e1bcbab99457d972eb940c01e7a7caadcc33 (patch)
tree86066927c12355f09d824030dbe7a32dd3c781c6 /branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache
parent69113617ffdd714fedb04d549c5107f1bfb84c20 (diff)
TUSCANY-2966 - reset bytes message after read in operation selector so that following wire format can re-read bytes if required.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@768697 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache')
-rw-r--r--branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultServiceInterceptor.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultServiceInterceptor.java b/branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultServiceInterceptor.java
index 16d6dcefcd..66f875621c 100644
--- a/branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultServiceInterceptor.java
+++ b/branches/sca-java-1.x/modules/binding-jms-runtime/src/main/java/org/apache/tuscany/sca/binding/jms/operationselector/jmsdefault/runtime/OperationSelectorJMSDefaultServiceInterceptor.java
@@ -143,6 +143,7 @@ public class OperationSelectorJMSDefaultServiceInterceptor implements Intercepto
long noOfBytes = ((BytesMessage) jmsMsg).getBodyLength();
byte[] bytes = new byte[(int) noOfBytes];
((BytesMessage) jmsMsg).readBytes(bytes);
+ ((BytesMessage) jmsMsg).reset();
if (bytes != null) {
XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new ByteArrayInputStream(bytes));