On Dec 22, 2010, at 5:32 AM, stratio wrote: > Content : > > <ajax-response> > <response id='test' destination='topic://ActiveMQFeed' ></response> > </ajax-response> > > > > > So I guess that the reason for which i don't see anything on the browser is > that the response is a binary message. I saw this > https://issues.apache.org/jira/browse/AMQ-2833 about this problem > (considering i'm publishing the messages on the topic via a stomp ruby > client). > > How can I apply the patch in order to solve the problem? > Do I have to modify the Javascript code?
You only need to send an additional amq-msg-type header. #!/usr/bin/ruby conn = Stomp::Client.open( 'user', 'pass', 'host', 'port' ) conn.send( '/topic/ActiveMQFeed', 'your message', {'amq-msg-type'=>'text'} )