I have Dynamic Web Application deployed on Glassfish server. Inside my application I have a java function that is invoked every time certain JMS Message is received. Depending on JMS Message, I want to update the state of web application that is loaded inside web browser - I need to call certain Javascript function as soon as the JMS Message is received.
How can i accomplish that? Is there any java and/or Javscript library that can do this?
Any help will be greatly appreciated, thank you.
P.S. After Some research i have found a very useful library that does exactly what i wanted: DWR - Direct Web Remoting