JavaScript and JMS integration

Where can I find guidance on integrating JavaScript and JMS (Java Messaging Service)?

I need best practice or installed technology that allows me to directly or indirectly receive messages from a topic and update the site based on the message. I was thinking of creating two components, a servlet for a web module and an MDB (Message-Driven Bean) for an EJB module. The web client will send messages from the JMS topic, and the MDB will handle onMessage.

Does this sound right? Have you seen examples?

Edit: I am using ActiveMQ for JMS.

+3
source share
4 answers

I think this is your answer. It looks like it is baked in ActieMQ. I tried the examples and they seem to work.

http://activemq.apache.org/ajax.html

+3

DWR JavaScript Java-. Java Java + , . JMS, . , , Spring, Mule DWR.

+1

Dojo/Bayeux
http://www.pathf.com/blogs/2006/08/bayeux_a_json_p/

WebSphere 6.0 , Web 2.0 .

0

The Seam framework supports subscribing to JMS themes from a JavaScript-based client:

http://docs.jboss.com/seam/2.0.2.GA/reference/en-US/html/remoting.html#d0e14169

0
source

Source: https://habr.com/ru/post/1696901/


All Articles