Search code examples
javajquerytomcat7atmosphere

how to get response from Atmosphere framework without any actions done from user


I'm using struts2 integrated with spring framework for my application, I need to get a response from server side without the action done by the user. That is like pull technology. so i preferred Atmosphere Framework becoz it is a push framework and i've work out the example from this link

but in that example im getting response for any action done by me. but i need without any action i've to get response like text appear in jsp by invoking query or any other method. please check and help to improve.


Solution

  • See this. Mainly, you must use the BroadcasterFactory.