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
This commit is contained in:
slaws 2009-04-26 12:16:37 +00:00
parent 69113617ff
commit 6ac1e1bcba

View file

@ -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));