• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMQ andservlets

 
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
Marshal
Posts: 35709
410
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!