4. Up to now
●
Ajax polling (a.k.a. "are we there yet?")
●
Long-polling, streaming
●
Plugins – flash/applets/ActiveX
●
Problems: hacky, resource-heavy, serverthread-unfriendly
7. Server-side
●
node.js
●
Java – Java EE WebSocket API (JSR-356)
●
●
Servlet container implementations – thread
pools
Spring-MVC API, Spring Messaging API
8. Java WebSocket API vs Spring
●
●
Very similar
One handler per endpoint, differentiate based
on payload
●
Out-of-the-box dependency injection with spring
●
No annotation configuration in spring (yet)