You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by vivek79 <vi...@gmail.com> on 2013/04/16 05:00:55 UTC
Camel EmbeddedBroker and WebSocket
Hi,
I am using camel routes to embedded broker using following code.
ConnectionFactory connectionFactory = new
ActiveMQConnectionFactory("vm:broker:(ws://0.0.0.0:61614)")
getContext().addComponent("event-jms",JmsComponent.jmsComponentAutoAcknowledge(connectionFactory))
from("jetty:http://0.0.0.0:8090/events?matchOnUriPrefix=true")
.to("log:${getClass().getName()}?level=INFO&showAll=true")
.inOnly("event-jms:topic:events")
When I use post to http://0.0.0.0:8090/events message correctly gets in to
activeMQ. Java Script client is based on Stomp example (websocket-stomp)
http://jmesnil.net/stomp-websocket/doc/.
but my Java Script client doesn't get connected to web socket.
if I run the same configuration from standalone ActiveMQ installation then
both work
<transportConnectors>
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
<transportConnector name="websocket" uri="ws://0.0.0.0:61614"/>
</transportConnectors>
I have no errors in the console log , and camel-optional.jar is also
included
is websocket only available in standalone installation?
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-EmbeddedBroker-and-WebSocket-tp5730948.html
Sent from the Camel - Users mailing list archive at Nabble.com.