• Post Reply Bookmark Topic Watch Topic
  • New Topic

best servlet for websockets?  RSS feed

 
spiros kelevra
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am a newbie to websockets and servlets and also to this forum, so hello everyone.

I'm trying to implement websockets on my website. Its a web-mapping project and I already use Apache httpd 2.2.22 and Geoserver 2.1.3. Now, Apache does not support websockets, fact.

I've tried to install some websockets modules on Apache, but no luck at all. Then I installed Kaazing websocket gateway but its more about client side.

What is the best servlet to implement websockets? I was thinking about Tomcat. But, as they say "The API used for application development has not yet been finalised" source

Jetty has not a build-in admin GUI and because I am a newbie, gets it out of the picture.

What servlet do you suggest that is newbie-friendly? Or should I use a servlet as a stand-alone server? But most of my files are php and html, so isnt this, a bit of overkill?
Should I connect Tomcat with Apache?
How about ActiveMq, is that a http server or a servlet? At least they say nothing about not finished API and comes with a build-in admin GUI console

Help me please, I just dont know what to do, I'm a mid-level web dev for a couple years now, but this websockets/servlets brought me on my knees, I am confused. Also my native language is Greek, so quickly understanding concepts and articles is kind of hard for me. Please provide suggestions or giudelines. Or better yet, simple tutorias.

Thank you so much
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WebSockets are part of JEE 7, so you need a JEE 7 compliant server. At this point, that's only GlassFish 4. In expect that in due time, the others (Resin, Tomcat, Jetty etc.) will support it as well.

ActiveMq is a messaging server, that's something entirely different.

I'm not sure why you're thinking of a Java solution if most of your stuff is PHP or static HTML, though... ? Hadn't you better check out what PHP offers in that respect?
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to have a look at Atmosphere framework. It supports WebSockets, Server Side Events (SSE), Long-Polling, HTTP Streaming (Forever frame) and JSONP. (According the their page).
Of course, if you are looking for a JVM solution.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!