弹性+春天 + BlazeDS +玻璃鱼 + OpenMQ - 如何为 OpenMQ 配置 Web 应用程序配置?

发布于 2024-08-04 08:29:28 字数 653 浏览 1 评论 0原文

我有 spring-flex-testdrive 示例(使用主题来发布/订阅消息的 JMS 聊天应用程序)可以在带有 ActiveMQ 的 Tomcat 上工作,现在我想在带有 OpenMQ 的 Glassfish 上运行这个示例。

这是我在网上找到的相关示例配置,但它对于 Flex/Glassfish/OpenMQ/BlazeDs/Spring-Integration 技术组合不太适用。 (链接

我可以将其部署在 Glassfish 上,但无法连接到目的地。我见过论坛提到用 OpenMQ 类/bean 声明替换 ActiveMQ,但情况似乎并非如此。如何为 OpenMQ 配置 web-application-context.xml?常见的问题有哪些?

谢谢。

I have the spring-flex-testdrive example (JMS chat application which uses a Topic to pub/sub messages) to work on Tomcat with ActiveMQ now I want to run this example on Glassfish with OpenMQ.

This is a related sample config I found online but it doesn't quite work for the Flex/Glassfish/OpenMQ/BlazeDs/Spring-Integration technology combination.
(Link)

I can deploy it on Glassfish but it can't connect to the destination. I've seen forums mention just replace ActiveMQ with OpenMQ classes/bean declarations but that does not appear to be the case. How do you configure the web-application-context.xml for OpenMQ? What are the common gotcha's?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

墨小沫ゞ 2024-08-11 08:29:28
<bean id="connectionFactory" class="CustomOpenMqConnectionFactoryBean">
    <property name="imqAddressList" value="localhost:7676" />
    <property name="imqDefaultUsername" value="admin" />
    <property name="imqDefaultPassword" value="admin" />
</bean>

<bean id="chatTopic" class="com.sun.messaging.Topic">
    <constructor-arg type="java.lang.String" value="cTopic"/>
</bean>           
<bean id="connectionFactory" class="CustomOpenMqConnectionFactoryBean">
    <property name="imqAddressList" value="localhost:7676" />
    <property name="imqDefaultUsername" value="admin" />
    <property name="imqDefaultPassword" value="admin" />
</bean>

<bean id="chatTopic" class="com.sun.messaging.Topic">
    <constructor-arg type="java.lang.String" value="cTopic"/>
</bean>           
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文