• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMQ andservlets  RSS feed

 
Ambika Jain
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am a beginner..I am using JMQ andservlets for writing a chat application.
When I receive the messages in "onMessage(Message m)" method, how
do I prompt the servlet about the new message receive?

Thanks.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37252
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amba,
There isn't a way for the server to tell a web page that there is new data. Instead, the web page needs to poll the server. You could refresh an iframe on the generated page every few seconds to see if a new message has come in.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!