It is a forwarding mechanism between any two messaging products. ie between two JMS's of WebLogic
or between Weblogic JMS and other messaging product.
Basically, this messaging bridge consists of two destinations ( Source & target) that are being bridged.
Here we use “jms-notran-adp” which is the default adapter created for JMS Messaging Bridge with default QOS selected as “Exactly-Once”.
or between Weblogic JMS and other messaging product.
Basically, this messaging bridge consists of two destinations ( Source & target) that are being bridged.
Here we use “jms-notran-adp” which is the default adapter created for JMS Messaging Bridge with default QOS selected as “Exactly-Once”.
Configure WebLogic domain with the following configuration:
- One Admin Server
- One Managed server
- One JMS server targeted to Admin
- another targeted to Managed server
Inside this JMS module create the below resources.
- JMS Connection Factory (default targeting)
- JMS Sub Deployment targeted to JMS server which is targeted to Admin Server
- JMS Queue targeted to Sub Deployment created in the above step.
Inside this JMS module create the following resources:
- JMS Connection Factory (default targeting)
- JMS Sub Deployment targeted to JMS Server which is targeted to Managed Server
- JMS Queue targeted to JMS Sub Deployment created in the above step
For creating a JMS Bridge Destination,
click on the left panel in the console and go to:
Services -> Messaging -> Bridges.
- Leave Adapter JNDI default name as is to “eis.jms.WLSConnectionFactoryJNDINoTX”
- Initial Context Factory as default to “weblogic.jndi.WLInitialContextFactory”
- For connection URL specify the t3 listen address of the Admin server, e.g., t3://localhost:7001.
- For Connection Factory JNDI Name specify the Connection Factory JNDI Name which is part of the JMS Module targeted to Admin Server.
- For Destination, JNDI Name selects JMS Queue JNDI name which is part of JMS Module targeted to Admin Server.
- Select Destination Type as “Queue”.
Below are the details.
- Leave Adapter JNDI name as is as default to “eis.jms.WLSConnectionFactoryJNDINoTX”
- Initial Context Factory as default to “weblogic.jndi.WLInitialContextFactory”
- For connection URL specify the t3 listen address of the Managed server, e.g. t3://localhost:7002
- For connection Factory JNDI Name specify the Connection Factory JNDI Name which is part of JMS Module targeted to Managed Server
- For destination JNDI Name select JMS Queue JNDI name which is part of JMS Module targeted to Managed Server
- Select Destination Type as “Queue”
For this we have to select:
- source destination of JMS Bridge as Managed server Queue
- & target destination as Admin Server queue.
Select the “Started” checkbox when creating JMS Bridge
For “Existing Source Destination”
For “Existing Source Destination”
- select the JMS Bridge Destination created for Managed server in the above step
- Leave Messaging Provider as is to default as “WebLogic Server 7.0 or higher”
- select the JMS Bridge Destination created for the Admin server in the above step
- Target the Messaging Bridge to Managed server.
- Once Messaging Bridge is created click on it and a select checkbox for “QOS Degradation Allowed”
- and save the changes.
Validating JMS Bridge Configuration:
Once the JMS Bridge Configuration is complete using the above steps and the servers are restarted, login to console to check the JMS Messaging Bridge Status.
From the Administration console, click on JMS Messaging Bridge and go to the Monitoring tab.
The state of Bridge should be reported as “Active” and Description as “Forwarding messages.”
This means that the JMS Bridge configuration is successful, up and active in forwarding messages.
In this sample use case, JMS Bridge targeted to Managed server is picking messages from Managed Server JMS Queue and forwarding them to Admin Server JMS Queue.
The state of Bridge should be reported as “Active” and Description as “Forwarding messages.”
This means that the JMS Bridge configuration is successful, up and active in forwarding messages.
In this sample use case, JMS Bridge targeted to Managed server is picking messages from Managed Server JMS Queue and forwarding them to Admin Server JMS Queue.
Br,
Punit
Punit
No comments:
Post a Comment