Duplex over a Core Bridge Connection
tootedom Jan 26, 2011 10:31 AMHi
Is it possible to mark a Core Bridge Connection as duplex. So that messages can be sent by the creator of the core connection; and also recieved from the target of the connection.
The reason I ask is that Connections from our Source Server to our Target Server, traverse a Firewall. The Firewall only allows connections to be Established one way (Source to Target). Once the connection is established, traffic can flow in both directions.
Using the following on the Source Server:
{code:xml}
<bridges>
<bridge name="inter-platform-bridge-connection">
<queue-name>jms.queue.BRIDGE</queue-name>
<forwarding-address>jms.queue.BRIDGE</forwarding-address>
<retry-interval>5000</retry-interval>
<reconnect-attempts>-1</reconnect-attempts>
<failover-on-server-shutdown>false</failover-on-server-shutdown>
<use-duplicate-detection>true</use-duplicate-detection>
<confirmation-window-size>1</confirmation-window-size>
<connector-ref connector-name="inter-platform-bridge-connection"/>
</bridge>
</bridges>
{code}
Messages are only forwarded from the Source Server to the Target Server. If the Target Server puts a message on the QUEUE it cannot be recieved by the Source Server.
I have tried creating a core bridge from the Target to the Source, but this requires that the Target server be able to Establish Connections, which is not possible within our network infrastructure.
Is it possible to set up a core bridge network connection from Source to Target, and then allow messages to flow both ways; so the Source can recieve messages from the Target. i.e.
{code:xml}
<bridges>
<bridge name="inter-platform-bridge-connection">
<queue-name>jms.queue.BRIDGE</queue-name>
<forwarding-address>jms.queue.BRIDGE</forwarding-address>
<retry-interval>5000</retry-interval>
<reconnect-attempts>-1</reconnect-attempts>
<failover-on-server-shutdown>true</failover-on-server-shutdown>
<use-duplicate-detection>true</use-duplicate-detection>
<confirmation-window-size>1</confirmation-window-size>
<connector-ref connector-name="inter-platform-bridge-connection"/>
</bridge>
<bridge name="inter-platform-bridge-connection-feedback">
<!-- Make me duplex, so I can recieve feed back messages
based on what was sent -->
<queue-name>jms.queue.FEEDBACK</queue-name>
<forwarding-address>jms.queue.FEEDBACK</forwarding-address>
<retry-interval>5000</retry-interval>
<reconnect-attempts>-1</reconnect-attempts>
<failover-on-server-shutdown>true</failover-on-server-shutdown>
<use-duplicate-detection>true</use-duplicate-detection>
<confirmation-window-size>1</confirmation-window-size>
<connector-ref connector-name="inter-platform-bridge-connection"/>
</bridge>
<bridges>
{code}
Thanks
/dom