Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #20016
| From | Kevin McMurtrie <mcmurtrie@pixelmemory.us> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Java servlet, comet, long polling, websocket: I am consused !! |
| References | <k7ln1q$id0$1@news.albasani.net> <509ec5dd$0$26894$742ec2ed@news.sonic.net> <dq-dnVh_K8ErLDLNnZ2dnUVZ_umdnZ2d@giganews.com> |
| Date | 2012-11-28 21:02 -0800 |
| Message-ID | <50b6ec84$0$29801$742ec2ed@news.sonic.net> (permalink) |
| Organization | Sonic.Net |
In article <dq-dnVh_K8ErLDLNnZ2dnUVZ_umdnZ2d@giganews.com>, jebblue <n@n.nnn> wrote: > 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. Why the totally off-topic reply about the start/stop procedure? /opt/jetty/bin/jetty.sh stop /opt/jetty/bin/jetty.sh start Or use the init.d scripts. That looks a lot like Tomcat. I recommend using the server best supports the features you need. Software developers aren't paid lots of money to make decisions based on FUD. There's good reason for Restlet, Jetty, Resin, Tomcat, and other engines existing. -- I will not see posts from Google because I must filter them as spam
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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