简体   繁体   English

jboss 6远程jms桥配置不起作用

[英]jboss 6 remote jms bridge configuration not working

I have to push messages from one jobss server and consume from another jboss server. 我必须从一个作业服务器推送消息,并从另一台jboss服务器使用消息。 For that I used jms bridge. 为此,我使用了jms bridge。

Added jms bridge configuration under </hornetq-server> tag in standalone-full.xml and also referred dependencies via module. standalone-full.xml的 </ hornetq-server>标记下添加了jms网桥配置,并且还通过模块引用了依赖项。

 <jms-bridge name="simpleBridge" module="org.jboss.messaging"> <source> <connection-factory name="ConnectionFactory"/> <destination name="java:/simpleSOurceQ"/> </source> <target> <connection-factory name="RemoteConnectionFactory"/> <destination name="/queue/simpleTargetQ"/> <context> <property key="java.naming.factory.initial" value="org.jboss.naming.remote.client.InitialContextFactory"/> <property key="java.naming.provider.url" value="remote://TARGET_URL:5445"/> </context> </target> <quality-of-service>DUPLICATES_OK</quality-of-service> <failure-retry-interval>500</failure-retry-interval> <max-retries>1</max-retries> <max-batch-size>500</max-batch-size> <max-batch-time>500</max-batch-time> <add-messageID-in-header>true</add-messageID-in-header> </jms-bridge> 

Deployment time, getting below ERROR in jboss, 部署时间,低于jboss的ERROR,

ERROR LOG : ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("add") failed - address: ([ ("subsystem" => "messaging"), ("jms-bridge" => "simpleBridge") ]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.messaging.jms-bridge.simpleBridge is missing [jboss.naming.context.java.simpleSourceQ] "]} 错误日志:错误[org.jboss.as.controller.management-operation](控制器引导线程)​​JBAS014612:操作(“ add”)失败-地址:([(“ subsystem” =>“ messaging”),(“ jms -bridge“ =>” simpleBridge“)])- 故障描述:{” JBAS014771:缺少依赖项/不可用依赖项的服务“ => [” jboss.messaging.jms-bridge.simpleBridge缺少[jboss.naming.context.java。 simpleSourceQ] “]}

How to resolve this? 如何解决呢?

or Is there anyway to achieve this? 还是有实现这一目标的方法?

The bridge's source is defined as: 桥的源定义为:

<source>
   <connection-factory name="ConnectionFactory"/>
   <destination name="java:/simpleSOurceQ"/>
</source>

However, according to a comment your jms-queue is defined as: 但是,根据评论,您的jms-queue定义为:

<jms-queue name="simpleSourceQ">
   <entry name="jms/queue/simpleSourceQ"/>
   <entry name="java:jboss/exported/jms/queue/simpleSourceQ"/>
   <durable>true</durable>
</jms-queue>

As you can see, the destination name from the source doesn't match any of the entry elements from the jms-queue therefore the bridge dependencies are not met. 如您所见, sourcedestination名称与jms-queue中的任何entry元素都不匹配,因此不满足网桥依赖性。 The bridge's source should reference a valid JNDI entry of the jms-queue . 网桥的源应引用jms-queue的有效JNDI条目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM