To send the generated data to your service, I would either use WebSocket or JMS, whichever you prefer.
Then to distribute the data to the other clients, I would either use Jersey SSE support or WebSocket again.
... and I would not try to implement it in a single server-side component...
Cheers,
Marek
On 02 Jul 2014, at 19:00, Monika Solanki <monika.solanki_at_gmail.com> wrote:
> I have a standalone application that continuously generates data in real time, I would like advise on the most optimal way to send this data to a Jersey service which will further distribute this data to Web clients via web sockets. I am aware of using Inputstreams as one way to send this data to the service but I am not sure if this is the best option.
>
> Thanks,
>
> Monika