XML in RabbitMQ with Stomp protocol

170 views
Skip to first unread message

Maria Garcia

unread,
Jun 13, 2013, 3:48:50 AM6/13/13
to stomp...@googlegroups.com
Hi, 

I am trying to send and receive a XML with a RabbitMQ + Stomp and a browser client, I also use SockJS . First, I send and receive a simple text message without problems, but when I send a XML, I lost my connection and I don't know why. Any idea?

Thanks in advance.

Here my code, where d.body supposedly is my XML message:
 
<script>
      // Stomp.js  create WS connection
     var ws = new SockJS('http://' + window.location.hostname + ':15674/stomp');
      var client = Stomp.over(ws);

      client.heartbeat.outgoing = 0;
      client.heartbeat.incoming = 0;
       

      var on_connect = function(x) {
            
          id = client.subscribe("/exchange/nombreExchange", function(d) {
               print_first(d.body);
            });
      };

      var on_error =  function() {
        console.log('error');
      };
      client.connect('guest', 'guest', on_connect, on_error, '/');


    </script>

Hiram Chirino

unread,
Jun 13, 2013, 9:29:34 AM6/13/13
to stomp-spec
Hi this list is mainly used by implementors of STOMP client libraries
and servers to discuss the STOMP spec and any interoperability
questions. It's not really used for implementation specific
questions. You should re-direct your questions to the RabbitMQ or
SockJS communities.
> --
> You received this message because you are subscribed to the Google Groups
> "stomp-spec" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to stomp-spec+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Hiram Chirino

Engineering | Red Hat, Inc.

hchi...@redhat.com | fusesource.com | redhat.com

skype: hiramchirino | twitter: @hiramchirino

blog: Hiram Chirino's Bit Mojo
Reply all
Reply to author
Forward
0 new messages