• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

best servlet for websockets?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic