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:
parent
69113617ff
commit
6ac1e1bcba
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue