Databases Reference
In-Depth Information
Relying on SAF to transfer JMS messages
to another WebLogic domain
Store-and-Forward (SAF) is another mechanism WebLogic provides to transfer messages
from one source to a target destination.
The WebLogic messaging bridge and the SAF work in a similar way although the SAF is
recommended over the messaging bridge when used to transfer messages between domains
with WebLogic Version 9.0 or later. JMS SAF also simplifies the configuration since there is no
need to configure a local JMS queue destination as the SAF creates a local representation of
the remote queue.
In this recipe, a SAF agent will be created to forward the JMS messages to a hypothetic
distributed queue with a JNDI name jms.remotequeue , hosted by a separate WebLogic
domain REMOTE_DOMAIN . The REMOTE_DOMAIN domain is configured with a cluster with
the two Managed Servers instances running at the t3://remote01.domain.local:9001
and t3://remote02.domain.local:9002 addresses. The local representation of the
remote queue in the PROD_DOMAIN domain will be configured under the JNDI name jms.
remotequeue-saf .
Getting ready
This recipe assumes the REMOTE_DOMAIN domain is up and running and the SAF agent
can connect to the remote destinations. The configuration is changed by accessing the
Administration Console, so make sure the Administration Server is running.
How to do it...
Create the SAF agents as follows:
1. Access the Administration Console with your web browser at http://adminhost.
domain.local:7001/console .
2. Click on the Lock & Edit button to start a new edit session.
3. Click on the plus sign to open the Services tree on the left; click on +
Messaging and then on Store-and-Forward Agents.
4. Click on the New button to open the Create a New Store-and-Forward Agent
page. Type SAFAgent_01 in the Name field and select the FileStore01 option in
the Persistent Store drop-down menu. Change the Agent Type option to Sending-
only and click on the Next button.
5. Select the PROD_Server01 server as Target. Click on the Finish button.
 
Search WWH ::




Custom Search