本文介绍了HornetQ JMS主题到主题的桥梁的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在两个主题之间架起一座桥梁.这个想法是这样的:

I'm trying to set up a bridge between two topics. The idea is this:

  • 通知被发布到HornetQ服务器A上的某个主题
  • 此通知已发送到HornetQ服务器B上的某个主题(通过桥?)
  • 客户端应用从服务器B获取通知.
  • A notification gets posted to a topic on HornetQ server A
  • This notification gets sent to a topic on HornetQ server B (over abridge?)
  • The client app gets the notification from server B.

我需要这样做的原因是,如果服务器B关闭,我们仍然希望该主题启动,并最终传递给订阅服务器.

The reason I need to do this is, if server B is down, we still want the topic up and eventually delivered to the subscribing servers.

我需要的是一个演示hornetq-configuration.xml和hornetq-jms.xml的示例.还是我看错了方向,并且有更好的方法可以做到这一点?

What I need is an example hornetq-configuration.xml and hornetq-jms.xml demonstrating this. Or am I looking at it the wrong way and there is a better way to do this?

我正在使用HornetQ 2.2.14.Final.

I am using HornetQ 2.2.14.Final.

推荐答案

主题不在核心级别,但是您可以做到;请点击此链接: https://community.jboss.org/thread/177979

Topic is not in the core level, but you can do it; follow this link:https://community.jboss.org/thread/177979

这篇关于HornetQ JMS主题到主题的桥梁的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 06:45