I would try using DWR to integrate JavaScript with your Java app. It makes Java to JavaScript communication transparent and only requires one servlet + configuration of what to expose. I haven´t done this with JMS, but it should work the same. There are three technologies that together solve all my integration problems, Spring, Mule, and DWR.
发布评论
评论(4)
您将在此处找到一些对 Dojo/Bayeux 方法的参考
http://www.pathf.com/blogs/2006/08/bayeux_a_json_p/< /a>
如果您使用的是 WebSphere 6.0 或更高版本,那么 Web 2.0 Feature Pack 包含一个实现。
You'll find some references to the Dojo/Bayeux approach here
http://www.pathf.com/blogs/2006/08/bayeux_a_json_p/
If you're using WebSphere 6.0 or higher then the Web 2.0 Feature Pack includes an implementation.
我认为 这 就是你的答案。 看起来它已经融入到 ActiveMQ 中了。 我尝试了这些例子,它们似乎有效。
http://activemq.apache.org/ajax.html
I think this is your answer. Looks like it is baked in to ActiveMQ. I tried the examples and they seem to work.
http://activemq.apache.org/ajax.html
我会尝试使用 DWR 将 JavaScript 与您的 Java 应用程序集成。 它使 Java 到 JavaScript 的通信变得透明,并且只需要一个 Servlet + 配置即可公开内容。 我还没有使用 JMS 完成此操作,但它的工作原理应该是相同的。 三种技术共同解决了我所有的集成问题,Spring、Mule 和 DWR。
I would try using DWR to integrate JavaScript with your Java app. It makes Java to JavaScript communication transparent and only requires one servlet + configuration of what to expose. I haven´t done this with JMS, but it should work the same. There are three technologies that together solve all my integration problems, Spring, Mule, and DWR.
Seam 框架 支持从基于 JavaScript 的客户端订阅 JMS 主题:
http://docs.jboss.com/seam/2.0.2 .GA/reference/en-US/html/remoting.html#d0e14169
The Seam framework supports subscription to JMS topics from a JavaScript based client:
http://docs.jboss.com/seam/2.0.2.GA/reference/en-US/html/remoting.html#d0e14169