views:

63

answers:

2

I want to create simple server having low load. The goal is to give a few javascript clients access to some functionality implemented in Java through WebSockets. I seek for best library to use for that - it should be simple, robust etc. Now I consider 3 alternatives - jWebSocket - jetty - netty What is the best? Or may be something else?

Thanks in advance

A: 

Take a look at Atmosphere. Here is an article about websocket and atmosphere.

Bozho
+2  A: 

I'd go with proven Java servlet servers: Jetty or Resin. The have both been extended to handle WebSockets:

Jetty WebSockets

Resin WebSockets

My personal choice would be Jetty, as it's very simple to use and I've been using it as embedded server in several projects.

There are also some new kids on the block like Atmosphere and jWebSocket, but for servers I prefer to go with a proven solution. Jetty and Resin are also generic Servlet servers, so you can go with one product for all your serving needs.

Peter Knego
One more option: http://activemq.apache.org/websockets.html
Neeme Praks