Search code examples
apache-servicemix

Service mix update a webpage


I have the following problem:

I have a queue with messages, and my goal is when a new message arrives, it should be transformed and update a webpage automatically.

I have already implemented in ServiceMix a consumer for that queue that reads and transform, but I don’t know how I can push that information to the webpage.

Anybody knows how can do that?


Solution

  • I did this by using a socket.IO and rest service in NodeJS. The camel sends a message (REST message) to this service with the data and the socket.IO will update the page information:

    Camel Receives->(Send to NodeJS by using a REST service)->Node JS will update page using socket.io