![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
When specifying a bridge, you can specify a particular destination name, or you can use wildcards. For example, if you specify a bridge on topic foo.* to queue foo.queue, messages delivered to any topic matching foo.* are sent to foo.queue.
When multiple bridges exist, using wildcards to specify a destination name may result in a message being delivered twice. For example, if the queues Q.1 and Q.> are both bridged to QX.1, the server will deliver two copies of sent messages to QX.1.Figure 10 Bridging a topic to a queue
Bridges are not transitive. That is, messages sent to a destination with a bridge are only delivered to the specified bridged destinations and are not delivered across multiple bridges. For example, topic A.B has a bridge to queue Q.B. Queue Q.B has a bridge to topic B.C. Messages delivered to A.B are also delivered to Q.B, but not to B.C.Bridges are configured in the bridges.conf configuration file. You specify a bridge using the following syntax:where destinationType is the type of the destination (either topic or queue), destinationName is the name of the destination from which you wish to create a bridge, destinationToBridgeTo is the name of the destination you wish to create a bridge to, and selector="messsgeSelector" is an optional message selector to specify the subset of messages the destination should receive.Each destinationName can specify wildcards, and therefore any destination matching the pattern will have the specified bridge. Each destinationName can specify more than one destinationToBridgeTo.For example, the bridge illustrated in Figure 10 and Figure 11 would be specified as the following in bridges.conf:
Message selectors for bridged destinations are specified as the selector property on the bridge. The following is an example of specifying a selector on the bridges defined in the previous section:For detailed information about message selector syntax, see the documentation for the Message class in the relevant EMS API reference document.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |