-
1. Re: JMS management over Stomp: no messages in Topic hornetq.management
jmesnil Mar 29, 2010 5:44 AM (in response to mjustin)Michael Justin wrote:
Hello,
tody I tried the JMS management API with the Stomp transport. Retrieveing object information with hornetq.management (using _HQ_ResourceName and _HQ_Attribute) works fine. The result messages contain the information as binary data, I guess it is a serialized Java object, but this is ok at the moment. (Maybe it is possible to add a XML or JSON serializer for Java objects in the Stomp bridge later?)
Actually, management messages sends their result as a JSON string. Unfortunately, this string is encoded by HornetQ making it opaque to Stomp clients.
I'll change that in a future release so that the JSON string will directly be the body of the Stomp MESSAGE frame.
However I had no success with JMS message notifications (chapter 30.5.3 in the user guide). The Java example uses a special two-argument constructor for the topic:
Topic notificationsTopic = HornetQJMSClient.createHornetQTopic("hornetq.notifications", "hornetq.notifications");
The documentation was out of date. I've updated with the correct code snippet. I've also change the JMS management-notification example to use a JMS Topic to receive notification. In doubt, you can refer to this example to see how to configure HornetQ server.
thanks for the feedback
-
2. Re: JMS management over Stomp: no messages in Topic hornetq.management
jmesnil Mar 29, 2010 5:55 AM (in response to jmesnil)Jeff Mesnil wrote:
Michael Justin wrote:
Hello,
tody I tried the JMS management API with the Stomp transport. Retrieveing object information with hornetq.management (using _HQ_ResourceName and _HQ_Attribute) works fine. The result messages contain the information as binary data, I guess it is a serialized Java object, but this is ok at the moment. (Maybe it is possible to add a XML or JSON serializer for Java objects in the Stomp bridge later?)
Actually, management messages sends their result as a JSON string. Unfortunately, this string is encoded by HornetQ making it opaque to Stomp clients.
I'll change that in a future release so that the JSON string will directly be the body of the Stomp MESSAGE frame.
-
3. Re: JMS management over Stomp: no messages in Topic hornetq.management
mjustin Mar 30, 2010 1:33 AM (in response to jmesnil)Hi Jeff,
the management notification works great over Stomp, many thanks for your assistance! Today I blogged about it at http://mikejustin.wordpress.com/ and also posted a tutorial for JBoss AS 5 integration with Delphi and Free Pascal over HornetQ and my client library there.
Regards,
Michael Justin
-
4. Re: JMS management over Stomp: no messages in Topic hornetq.management
jmesnil Jun 24, 2010 8:45 AM (in response to mjustin)Hi michael,
I fixed the issue in HornetQ trunk and it is now possible to read management operation results from Stomp https://jira.jboss.org/browse/HORNETQ-343
Have a look at ManagementWithStompTest to see how it looks like.regards,
jeff
-
5. Re: JMS management over Stomp: no messages in Topic hornetq.management
mjustin Jun 24, 2010 9:15 AM (in response to jmesnil)Hi Jeff,
wonderful, I will include it in the next update of my Stomp library for Delphi and Free Pascal!
Mike