My Web app is already using STOMP, with JavaScript.
JavaScript Client
var ws = new SockJS('http://' + window.location.hostname+ ':15674/stomp');
var client = Stomp.over(ws);
...
...
...
client.subscribe("/topic/notifications", ...
Nevertheless, using this way, it doesn't interoperate with Standard RabbitMQ topics
My Java App is just triyng to publish on the same topic, with a blank routingKey
Sender
channel.exchangeDeclare("notifications", "topic");
channel.basicPublish("notifications", "", null, message.getBytes("UTF-8"));
Receiver
channel.exchangeDeclare(EXCHANGE_NAME, "topic");
String queueName = channel.queueDeclare().getQueue();
channel.queueBind(queueName, EXCHANGE_NAME, "");
The JavaSE Receiver gets the message, however, the JavaScript Client is not being notified.
Michael, you said that i should use a STOMP destination that interoperates with RabbitMQ, do you have any example?
Because i think that the way that i'm using with JavaScript, the STOMP topic destination is not the same as the Java Topic destination