camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vivek79 <vive...@gmail.com>
Subject Camel EmbeddedBroker and WebSocket
Date Tue, 16 Apr 2013 03:00:55 GMT
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.

Mime
View raw message