-
Download ActiveMQ 5.7 from this location http://repo.fusesource.com/nexus/content/repositories/releases/org/apache/activemq/apache-activemq/5.7.0.fuse-71-047/
or Apache Release http://repo1.maven.org/maven2/org/apache/activemq/apache-activemq/5.7.0/
-
start Jetty Web Server
cd websocket-activemq-camel/web mvn jetty:run
-
Start ActiveMQ 5.x using the config provided in feeder/src/main/config directory cd ~/fuse/servers/apache-activemq-5.x/bin ./activemq console xbean:file:/Users/chmoulli/Fuse/fuse-by-examples/websocket-activemq-camel/feeder/src/main/config/activemq-websocket.xml
-
Compile and start Feed application cd websocket-activemq-camel/feed mvn -P run-trader
-
Open your web browser http://localhost:8080/stocks-activemq.html
and click on connect button Remark : To connect from the web page to the ActiveMQ broker, the login to be used is guest & password is password
-
Start Apache Camel Routes (without using wss://)
cd websocket-activemq-camel/camel mvn camel:run -P NO-SSL
-
Compile and Start Feed application
cd websocket-activemq-camel/feed mvn -P run-trader
-
Verify stock and news websockets in your browser
http://localhost:9090/stocks-camel.html http://localhost:9090/news-camel.html
and click on connect button
To test SSL & wss:// protocol, execute the follownig command
-
Start Apache Camel Routes (with wss:// & HTTPS)
cd websocket-activemq-camel/camel mvn camel:run -P SSL
-
Compile and Start Feed application
cd websocket-activemq-camel/feed mvn -P run-trader
-
Verify stock and news websockets in your browser
https://localhost:8443/news-camel-wss.html
and click on connect button