Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #19868

Re: Java servlet, comet, long polling, websocket: I am consused !!

From jebblue <n@n.nnn>
Subject Re: Java servlet, comet, long polling, websocket: I am consused !!
Newsgroups comp.lang.java.programmer
References <k7ln1q$id0$1@news.albasani.net> <509ec5dd$0$26894$742ec2ed@news.sonic.net>
Organization Personal
Message-ID <dq-dnVh_K8ErLDLNnZ2dnUVZ_umdnZ2d@giganews.com> (permalink)
Date 2012-11-23 11:26 -0600

Show all headers | View raw


On Sat, 10 Nov 2012 13:23:41 -0800, Kevin McMurtrie wrote:

> In article <k7ln1q$id0$1@news.albasani.net>,
>  "sl@exabyte" <sb5309@hotmail.com> wrote:
> 
>> I have been reading the above topics for several days, and now utterly 
>> confused.
>> 
>> I am trying to to put a  server program for char room feature on my web 
>> site. To make the server program more efficient I am thinking of using 
>> sockets.
>> 
>> For the client end, I would to use socket if I can (otherwise AJAX).
>> 
>> At the server end, PHP or java daemon.
>> 
>> My questions:
>> 
>> 1.
>> a) For the front end, can I use java servlet ? I understand that websocket 
>> is not generally supported.
>> b) Is java servlet supported by browsers generally ?
>> 
>> 2.
>> I discover that there are comet, long polling, websocket. I am very confused 
>> now.
>> 
>> Can some experts discuss somewhat of all these options ?
>> 
>> Thanks.
> 
> 
> I'm using WebSockets with Jetty.  It generally works well for two-way 
> text messaging and it doesn't interfere with REST/Servlet APIs.  Recent 
> but important features, like ping/pong and different message types, 
> aren't supported by browsers.  There's also zero error handling defined 
> so you'll need to work that in.
> 
> Tomcat has experimental support for WebSockets but I recommend Jetty 
> instead.

Jetty doesn't even have a clean start/stop CLI interface like
Tomcat has had all along. Tomcat is the basis for all major
Enterprise Java web servers.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Java servlet, comet, long polling, websocket: I am consused !! "sl@exabyte" <sb5309@hotmail.com> - 2012-11-10 22:06 +0800
  Re: Java servlet, comet, long polling, websocket: I am consused !! markspace <-@.> - 2012-11-10 08:09 -0800
    Re: Java servlet, comet, long polling, websocket: I am consused !! "sl@exabyte" <sb5309@hotmail.com> - 2012-11-11 00:21 +0800
      Re: Java servlet, comet, long polling, websocket: I am consused !! markspace <-@.> - 2012-11-10 08:31 -0800
      Re: Java servlet, comet, long polling, websocket: I am consused !! "William Bonawentura" <nie@ma.mnie.pl> - 2012-11-12 07:38 +0100
        Re: Java servlet, comet, long polling, websocket: I am consused !! "sl@exabyte" <sb5309@hotmail.com> - 2012-11-12 22:13 +0800
      Re: Java servlet, comet, long polling, websocket: I am consused !! Arne Vajhøj <arne@vajhoej.dk> - 2012-12-10 22:20 -0500
  Re: Java servlet, comet, long polling, websocket: I am consused !! Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2012-11-10 13:23 -0800
    Re: Java servlet, comet, long polling, websocket: I am consused !! "sl@exabyte" <sb5309@hotmail.com> - 2012-11-11 21:30 +0800
      Re: Java servlet, comet, long polling, websocket: I am consused !! Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2012-11-13 00:44 -0800
    Re: Java servlet, comet, long polling, websocket: I am consused !! "sl@exabyte" <sb5309@hotmail.com> - 2012-11-11 21:37 +0800
      Re: Java servlet, comet, long polling, websocket: I am consused !! Arne Vajhøj <arne@vajhoej.dk> - 2012-12-10 22:24 -0500
    Re: Java servlet, comet, long polling, websocket: I am consused !! jebblue <n@n.nnn> - 2012-11-23 11:26 -0600
      Re: Java servlet, comet, long polling, websocket: I am consused !! Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2012-11-28 21:02 -0800
        Re: Java servlet, comet, long polling, websocket: I am consused !! jebblue <n@n.nnn> - 2012-12-07 00:09 -0600
          Re: Java servlet, comet, long polling, websocket: I am consused !! Arved Sandstrom <asandstrom2@eastlink.ca> - 2012-12-07 06:43 -0400
          Re: Java servlet, comet, long polling, websocket: I am consused !! Arne Vajhøj <arne@vajhoej.dk> - 2012-12-09 18:42 -0500
      Re: Java servlet, comet, long polling, websocket: I am consused !! Silvio <silvio@internet.com> - 2012-11-29 11:30 +0100
        Re: Java servlet, comet, long polling, websocket: I am consused !! jebblue <n@n.nnn> - 2012-12-07 00:12 -0600
      Re: Java servlet, comet, long polling, websocket: I am consused !! Roedy Green <see_website@mindprod.com.invalid> - 2012-12-09 10:01 -0800
      Re: Java servlet, comet, long polling, websocket: I am consused !! Arne Vajhøj <arne@vajhoej.dk> - 2012-12-09 18:30 -0500

csiph-web