[
https://issues.apache.org/jira/browse/AMQ-3889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467469#comment-13467469
]
Sathish V commented on AMQ-3889:
--------------------------------
Thanks for your quick response. My aim to create a external tool using JMX
that will monitor few ActiveMQ Queues periodically and peek(browse) into
certain non-well formed messages and raise alerts.
Few questions, if you can answer, will help me a lot.
1) Is there a workaround available for this?
2) Is this an issue with activeMQ JMX agent service? The upcoming patch to be
applied to activeMQ service?
3) I guess even though the browse shows message with null characters(after
couple of browsing on the same message), read message actually fetches the
message properly, please confirm if this is correct.
Thanks
Sathish
> Body Preview of BytesMessages change when browsed multiple times from
> QueueViewMbean
> ------------------------------------------------------------------------------------
>
> Key: AMQ-3889
> URL: https://issues.apache.org/jira/browse/AMQ-3889
> Project: ActiveMQ
> Issue Type: Bug
> Components: JMX
> Affects Versions: 5.5.1
> Environment: Linux 64-bit, multiple java versions.
> Reporter: Robin Kåveland Hansen
> Assignee: Timothy Bish
> Priority: Minor
> Fix For: 5.7.0
>
> Attachments: OpenTypeSupport.diff, OpenTypeSupportTest.java
>
>
> When using the browse method of org.apache.activemq.broker.jmx.QueueViewMBean
> to obtain CompositeData of messages, the Body Preview of BytesMessages
> changes between each browse.
> I am not sure if that is intended behaviour, but I have written a testcase
> that illustrates it.
> I have also narrowed it down to
> org.apache.activemq.broker.jmx.OpenTypeSupport.BytesMessageOpenTypeFactory,
> which uses ActiveMQBytesMessage.readBytes but does not call reset afterwards.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira