集成JavaScript和JMS [英] Integration of JavaScript and JMS

查看:164
本文介绍了集成JavaScript和JMS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到集成JavaScript和JMS(Java消息服务)的指南?

Where can I find a guide for integrating JavaScript and JMS (Java Messaging Service)?

我想要一种最佳实践或建立的技术,允许我直接或间接接收来自主题的消息,并根据消息更新站点。我正在考虑创建两个组件,一个用于Web模块的servlet,以及用于EJB模块的MDB(消息驱动Bean)。 Web客户端将收到来自JMS主题的消息,MDB将处理onMessage。

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

这个声音是否正确?你有没有看过任何例子?

Does this sound correct? Have you seen any examples?

编辑:我正在使用ActiveMQ作为JMS。

I am using ActiveMQ for the JMS.

推荐答案

我认为这个是你的答案。看起来像是放在ActieMQ里面。我尝试了这些例子,他们似乎正常工作。

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

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

这篇关于集成JavaScript和JMS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆