I need a solution for a specific feature of my application ,feature is same as recent achievements category of stack overflow.When a specific event happen in server (may be some level achievement or some kind of condition satisfy)then i want to notify to user through the GUI of my application ,What is the best approach to do this specif use case .thanks in adnvance
Asked
Active
Viewed 5,900 times
2
-
1Have a look at http://www.html5rocks.com/en/tutorials/eventsource/basics/ and http://www.html5rocks.com/en/tutorials/websockets/basics/ – Ravindra babu Oct 13 '15 at 14:25
1 Answers
4
You'll either want to use WebSockets or clientside polling.
There's a few java libraries out there to help abstract you from the underlying mechanics which can fallback to polling if websockets are not supported by the browser:
Im sure there's more but that'll get you started :)

lance-java
- 25,497
- 4
- 59
- 101