当前位置: 技术问答>java相关
如何配置发布监测远端JMS Server Topic的Message-Driven Bean?
来源: 互联网 发布时间:2017-03-08
本文导语: 我在本机上编写了一个Message-Driven Bean,需要发布到本机上,以监测远端JMS Server上的一个Topic.在编写配置文件时遇到了问题,那个远端Topic的JNDI属性应该如何写呢 我的jrun-ejb-jar.xml相关内容如下: ...
我在本机上编写了一个Message-Driven Bean,需要发布到本机上,以监测远端JMS Server上的一个Topic.在编写配置文件时遇到了问题,那个远端Topic的JNDI属性应该如何写呢
我的jrun-ejb-jar.xml相关内容如下:
mdbTopic
192.168.0.10:2908/jms/topic/mdbTopic
MDBTCF
192.168.0.10:2908/jms/jndi-MDBTopicConnectionFactory
但是在发布的时候说找不到这个jndi
郁闷
哪位高手指点一下,谢谢
我的jrun-ejb-jar.xml相关内容如下:
mdbTopic
192.168.0.10:2908/jms/topic/mdbTopic
MDBTCF
192.168.0.10:2908/jms/jndi-MDBTopicConnectionFactory
但是在发布的时候说找不到这个jndi
郁闷
哪位高手指点一下,谢谢
|
呵呵,在远端weblogic(7.0)中配置一个Distributed Topic指向本机即可
本机配置不变,请参考:
You can configure multiple physical WebLogic JMS destinations (queues and topics) as members of a single distributed destination set that can be served by multiple WebLogic Server instances within a cluster. Once configured, your producers and consumers are able to send and receive to the distributed destination. WebLogic JMS then distributes the messaging load across all available destination members within the distributed destination. When a destination member becomes unavailable, traffic is then redirected toward other available destination members in the set.
To create a new distributed topic, click the Configure a new Distributed Topic link. To create a new distributed queue, click the Configure a new Distributed Queue link.
本机配置不变,请参考:
You can configure multiple physical WebLogic JMS destinations (queues and topics) as members of a single distributed destination set that can be served by multiple WebLogic Server instances within a cluster. Once configured, your producers and consumers are able to send and receive to the distributed destination. WebLogic JMS then distributes the messaging load across all available destination members within the distributed destination. When a destination member becomes unavailable, traffic is then redirected toward other available destination members in the set.
To create a new distributed topic, click the Configure a new Distributed Topic link. To create a new distributed queue, click the Configure a new Distributed Queue link.
|
好象不是这样写的。
如果是weblogic,在文档中说明。
应该是两个属性 provide-url, client-on-same-server,还有什么contextfactory....
再仔细看一下随机文档,我以前也为它困扰了几天:)
如果是weblogic,在文档中说明。
应该是两个属性 provide-url, client-on-same-server,还有什么contextfactory....
再仔细看一下随机文档,我以前也为它困扰了几天:)