与远程 TIBCO Broker 的 JMS 桥接

使用 ActiveMQ Classic > 用户提交的配置 > 与远程 TIBCO Broker 的 JMS 桥接

此配置示例展示了如何使用 BridgeConnector 连接到远程 TIBCO EMS Broker。

<beans>
    <!-- Allows us to use system properties as variables in this configuration file -->
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

    <broker useJmx="true" persistent="false" xmlns="http://activemq.org/config/1.0"
            brokerName="localhost" dataDirectory="${activemq.base}/data">

        <!-- Dependencies: tibjms.jar must be in the activemq lib directory -->

        <!-- bridging definitions for traffic to/from remote activemq instance -->
        <jmsBridgeConnectors>
            <jmsQueueConnector outboundQueueConnectionFactory="#tibco">
                <inboundQueueBridges>
                    <inboundQueueBridge
                            inboundQueueName = "queue.ping"
                            localQueueName   = "queue.incomingMsgs.ping"
                            selector         = "JMSType LIKE 'foo%'"/>
                </inboundQueueBridges>
                <outboundQueueBridges>
                    <outboundQueueBridge
                            outboundQueueName = "queue.pong"
                            localQueueName    = "queue.incomingMsgs.ping"
                            selector          = "JMSType LIKE 'foo%'"/>
                 </outboundQueueBridges>
            </jmsQueueConnector>
        </jmsBridgeConnectors>
    </broker>

    <!-- JMS ConnectionFactory to use for local bridging -->
    <bean id="tibco" class="com.tibco.tibjms.TibjmsQueueConnectionFactory">
        <property name="serverUrl" value="tcp://remote_tibco:7222" />
    </bean>
</beans>

Apache、ActiveMQ、Apache ActiveMQ、Apache 羽毛标志和 Apache ActiveMQ 项目标志是 Apache 软件基金会的商标。版权所有 © 2024,Apache 软件基金会。根据 Apache 许可证 2.0 授权。