• Post Reply Bookmark Topic Watch Topic
  • New Topic

Http Long polling  RSS feed

 
Bubi gupta
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anybody please help me out with any tutorial or documentation or any source code in java regarding the Http Long polling?
I am trying to implement this in java.
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean polling the server for response? Try out servlet 3.0 it has support for comet.
You will need glassfish 3 to run servlet 3 apps.
 
Bubi gupta
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually the client should poll the server for an event or events.I am trying to implement that using http long polling.
If there is any sample code any docementation that will be of great help.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this client a web browser, an applet or a Java application? If it is a web browser than you will need JavaScript.
 
Bubi gupta
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our client will be a simple java application.It will do long polling.
 
Bubi gupta
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody kindly tell me how feasible is long polling using simple java?If possible can anybody help me out with any tutorial ,source code?I am not getting enough help relating to java from net('');
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use java.util.Timer for the polling.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!