Ravish Mody

Today one of our subscriber Chandu had asked me by commenting to provide the necessary configurations that can be done so that he can send the messages from one domain to other domain using JMS, hence I have chosen messaging bridge to do this job that’s why I am writing this post so that others can also take the benefits out of it. For demo you can check this post JMS Demo using WebLogic Messaging Bridge

So lets talk about messaging bridge like what is it, how things work in messaging bridge and what are the steps to configure it to send a message from one domain to another.

.

What is Messaging Bridge?

In simple words messaging bride is a type of forwarding mechanism for messages, which also provides interoperability between weblogic JMS implementations and between any other JMS messaging products like MQ or even can be used to between two different domains of weblogic server which can be in the same version or different versions.

Note: It is recommended that the messaging bridge should be configured on the higher version between any weblogic server version.

How does Messaging Bridge works?

As I told you that messaging bridge is a type of forwarding mechanism in which it has a Source Destination and a Target Destination which used with Java EE Connector Architecture (JCA) Resource adapters provided with weblogic server to send the messages from one place to other.

Source Destination – Means from where the messages are been read/picked up.

Target Destination – Means where the picked up messages has to be sent.

Resource adapter – It is uses JCA resource adapters to communicate with the configured source and target JMS destinations which gets deployed automatically (not in WLS 8.1) when we configure messaging bridge.

Steps to configure Messaging Bridge:

1.  You have to follow steps from Step-1 to Step-5 from the post Basic JMS Demo using WebLogic Queue. For Domain-1 running on port 8001 and again same steps on Domain-2 running on port 7001.

2.   After you have configured JMSServer, FileStore, System Module, Connection Factory and Queue on two different domains now we would start configuring the Bridge on Domain-1 having port 8001.

3.  Configure Source Bridge Destination

JMS Bridge-1

Creating Source Destination

JMS Bridge-2

Configuring Source Destination - URL = t3://localhost:8001

4.  Configure Target Bridge Destination

JMS Bridge-3

Creating Target Destination

JMS Bridge-4

Configuring Target Destination - URL = t3://localhost:7001

5.  Configure Messaging Bridge using source and target destination

JMS Bridge-5

Creating Messaging Bridge

JMS Bridge-6

Configuring Messaging Bridge

JMS Bridge-7

Selecting Source Destination

JMS Bridge-8

Selecting Messaging Provider for Source Destination

JMS Bridge-9

Selecting Target Destination

JMS Bridge-10

Selecting Messaging Provider for Target Destination

JMS Bridge-11

Targeting Messaging Bridge

JMS Bridge-12

Finishing Messaging Bridge Configuration

That’s it, your configuration for messaging bridge has been finished and its ready to send messages from the queue in Domain-1 having the port 8001 to the queue in Domain-2 having the port 7001. Hope this would help others too.

Regards,

Ravish Mody

If you enjoyed this post, please considerleaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.