Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 97522 invoked from network); 9 Feb 2006 15:16:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Feb 2006 15:16:08 -0000 Received: (qmail 89205 invoked by uid 500); 9 Feb 2006 15:16:06 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 88952 invoked by uid 500); 9 Feb 2006 15:16:02 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 88901 invoked by uid 99); 9 Feb 2006 15:16:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 07:16:01 -0800 X-ASF-Spam-Status: No, hits=-8.6 required=10.0 tests=ALL_TRUSTED,INFO_TLD,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 09 Feb 2006 07:15:39 -0800 Received: (qmail 96850 invoked by uid 65534); 9 Feb 2006 15:15:19 -0000 Message-ID: <20060209151519.96846.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r376314 [10/14] - /incubator/activemq/site/ Date: Thu, 09 Feb 2006 15:13:24 -0000 To: activemq-commits@geronimo.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: incubator/activemq/site/JMS+to+JMS+Bridge URL: http://svn.apache.org/viewcvs/incubator/activemq/site/JMS%2Bto%2BJMS%2BBridge?rev=376314&view=auto ============================================================================== --- incubator/activemq/site/JMS+to+JMS+Bridge (added) +++ incubator/activemq/site/JMS+to+JMS+Bridge Thu Feb 9 07:12:56 2006 @@ -0,0 +1,526 @@ + + + + + + + + ActiveMQ - JMS to JMS Bridge + + + + + + + + + + + + + + + + - +
+ + + + + + +
+

Overview

+ +

Community

+ +

Using ActiveMQ

+ +

Features

+ +

Connectivitiy

+ +

Utilities

+ +

External Tools

+ +

Related Projects

+ +

Support

+ +

Developers

+ +

Tools we use

+ +

Feeds

+ + + + + + + + + +
+
+
+ Site +
+ + + News +
+
+ +
+ + + + + +
+ JMS to JMS Bridge + + +
+
+ + +
+
+

Introduction

+

ActiveMQ provides bridging functionality to other JMS providers that implement the JMS 1.0.2 and above specification.
A JMS bridge can be co-located with an ActiveMQ broker or run remotely.
In order to support JMS 1.0.2 there is seperation between Queues and Topics.

+

temporary destinations and replyTo destinations in the inbound message exchanges are automatically handled, enabling an ActiveMQ service to handle a foreign JMS TopicRequestor or QueueResquestor exchanges.

+

properties

+

JMS Bridge Topic Connector

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
property name default value description
localTopicConnection null if set will be used to connect to ActiveMQ
localTopicConnectionFactorynullused to initialize the ActiveMQ JMS Connection if localTopicConnection is not set
jndiLocalTemplateSpring default template used for locating the Connection Factory for the ActiveMQ Connection if the localTopicConnection or localTopicConnectionFactory is not set
outboundTopicConnection null if set will be used to connect to the foreign JMS provider
outboundTopicConnectionFactorynullused to initialize the foreign JMS Connection if localTopicConnection is not set
jndiOutboundTemplateSpring default template used for locating the Connection Factory for the ActiveMQ Connection if the localTopicConnection or localTopicConnectionFactory is not set
localUsername null if set will be used for authentication to the ActiveMQ JMS provider
localPassword null if set will be used for authentication to the ActiveMQ JMS provider
outboundUsername null if set will be used for authentication to the foreign JMS provider
outboundPassword null if set will be used for authentication to the foreign JMS provider
inboundMessageConvertor null if set will be used for converting foreign JMS Messages to a format for ActiveMQ
outboundMessageConvertor null if set will be used for converting ActiveMQ messages to a format for the foriegn JMS provider
inboundTopicBridges null an array of InboundTopicBridge instances - used for defining inbound (subscribe to) traffic from the foreign JMS provider
outboundTopicBridges null an array of OutboundTopicBridge instances - used for defining destinations that will be published to the foreign JMS provider
+

+

JMS Bridge Queue Connector

+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
property name default value description
localQueueConnection null if set will be used to connect to ActiveMQ
localQueueConnectionFactorynullused to initialize the ActiveMQ JMS Connection if localQueueConnection is not set
jndiLocalTemplateSpring default template used for locating the Connection Factory for the ActiveMQ Connection if the localQueueConnection or localQueueConnectionFactory is not set
outboundQueueConnection null if set will be used to connect to the foreign JMS provider
outboundQueueConnectionFactorynullused to initialize the foreign JMS Connection if localQueueConnection is not set
jndiOutboundTemplateSpring default template used for locating the Connection Factory for the ActiveMQ Connection if the localQueueConnection or localQueueConnectionFactory is not set
localUsername null if set will be used for authentication to the ActiveMQ JMS provider
localPassword null if set will be used for authentication to the ActiveMQ JMS provider
outboundUsername null if set will be used for authentication to the foreign JMS provider
outboundPassword null if set will be used for authentication to the foreign JMS provider
inboundMessageConvertor null if set will be used for converting foreign JMS Messages to a format for ActiveMQ
outboundMessageConvertor null if set will be used for converting ActiveMQ messages to a format for the foriegn JMS provider
inboundQueueBridges null an array of InboundTopicBridge instances - used for defining inbound (subscribe to) traffic from the foreign JMS provider
outboundTopicBridges null an array of OutboundTopicBridge instances - used for defining destinations that will be published to the foreign JMS provider
+

+

InboundTopicBridge

+

+ + + + + + + + + + + + + + + + + + + + + + + +
property name default value description
consumerTopic null the topic to subscribe to
selector null selector to use - if any
consumerName null if set will create a durable consumer
+

+

OutboundTopicBridge

+

+ + + + + + + + + + + + + +
property name default value description
producerTopic null the topic to publish to
+

+

InboundQueueBridge

+

+ + + + + + + + + + + + + + + + + + +
property name default value description
consumerQueue null the queue to receive from
selector null selector to use - if any
+

+

OutboundQueueBridge

+

+ + + + + + + + + + + + + +
property name default value description
producerQueue null the queue to send to
+

+

Example Configuration

+

This is part of an example configuration of a Broker - bridging to a Foreign JMS provider

+

+

+
<!-- local broker with embedded Jms to Jms bridge (ok - it's contrived) -->
+  <bean id="localbroker" class="org.apache.activemq.broker.BrokerService" 
+    init-method="start">
+    <property name="brokerName" value = "localBroker"/>
+      <property name="persistent" value = "false"/>
+    <property name="transportConnectorURIs">
+      <list>
+        <value>tcp://localhost:61234</value>
+      </list>
+    </property>
+    <property name="jmsBridgeConnectors">
+      <list>
+      	<ref bean="jmsConnector"/>
+      </list>
+    </property>
+  </bean>
+  
+  <!-- JMS ConnectionFactory to use local broker (the one with the bridge) -->
+  <bean id="localFactory"
+    class="org.apache.activemq.ActiveMQConnectionFactory">
+    <property name="brokerURL" value="tcp://localhost:61234" />
+  </bean>
+  
+  <!--JmsTopicConnector - the Jms bridge -->
+  <bean id="jmsConnector"
+  	class="org.apache.activemq.network.jms.JmsTopicConnector">
+  	<property name = "outboundTopicConnectionFactory" ref = "remoteFactory"/>
+  	
+  	<property name = "inboundTopicBridges">
+  	 <list>
+  	  <ref bean="InboundTopicBridge" />
+  	 </list>
+  	 </property>
+
+  </bean>
+
+  <bean id ="InboundTopicBridge" class="org.apache.activemq.network.jms.InboundTopicBridge">
+  	<property name = "inboundTopicName" value = "org.apache.activemq.network.jms.TopicBridgeSpringTest"/>
+  </bean>
+</beans>
+
+

+
+
+ +   +
+ + +
@@ -67,6 +70,8 @@
  • Building
  • Running a Broker
  • Examples
  • +
  • Web Samples
  • +
  • Hello World
  • Monitoring the Broker
  • Xml Configuration
  • Xml Reference
  • @@ -75,8 +80,7 @@
  • Configuring Transports
  • Embedded Brokers
  • Performance Testing
  • -
  • Web Samples
  • -
  • Hello World
  • +
  • Command Line Tools Reference
  • Features

    Connectivitiy

    Features

    Connectivitiy

    Features

    Connectivitiy

    Features

    Connectivitiy