Message Bridge is a forwarding mechanism which help us in forwarding message through a bridge from source to destination.A much better definition along with diagram you can find in the following location
In this exercise we will see how we can create a message bridge to forward message from queue in one domain to queue in other domain.
for this Exercise you need essentially two domain.
Let suppose the two domains are DomainA and DomainB
We will create JMS Server,JMS Module,Subdeployment,JMS connection factory and JMS queue in both the domains.
Then in one of the domain we will create a Source and destination JMS Bridge destination and will create a bridge to forward the message from Source to Target destination.
In my set up i have two domain
DomainA has admin server running in 7777 and SOA_server running in 8888 port
DomainB has admin server running in 7001 and SOA_server running ins 8001 port
Now go to domainB and start doing the configuration
First of all i will create a JMS Server
Target it to the soa server
Create JMS Module
Target it to server
Create Sub Deployment
Target it to the JMS SErver you have created earlier.
create connection factory
Target to subdeployment
Create Queue
Target it to SubDeployment
Similarly for the other node we will do the similar configuration
Create JMS Server
Create JMS Module
Create SubDeployment
Create Connection factory
Create Queue
Create a Bridge Destination on First node
Source Bridge Destination will be basically using the connection factory and queue of the server where you are doing the configuration
Provide details for source bridge
Similarly configure Target bridge destination
Now Configure a Bridge
Select source destination
select message provider for source
Choose target destination
Choose message provider for destination also
Target it to your managed server
finish the wizard and restart both the managed server in two domains.
Now once you restart the server.Go again to your Bridge -->Monitoring tab and verify the bridge is active and is forwarding the message as shown below.
If this is not active that means you have done some misconfiguration.Or it has not started properly.Go to Bridge General tab and unselect started button save it and again click on start and save,It will ask you to restart the server.Restart and check if it is now active.
So now all your configuration are complete.
Now just create a outbopund connection pool to connect to the local queue
Create a simple process in jdeveloper or if you are good in java create a java program to insert some data in local queue of domain A.
Test this.
As soon as you will pass the data it will pass from the source queue to the destination queue in other domain.This worked fine at my end let me know if you have issue in the same.
No comments:
Post a Comment