Databases Reference
In-Depth Information
Using the Server affinity to tune the
distributed destinations' load balance
The connection factory is the JMS resource used by the client application to control the
behavior of the load balance algorithm used when publishing JMS messages to the distributed
destination and its queue or topic members.
An application deployed in a production environment should preferably use a custom connection
factory that can be tuned to fit the application requirements so as to avoid using the default
WebLogic connection factories. The JMS message-publishing and load-balancing behavior can
be tuned by changing the server affinity configuration of the connection factory. By default, the
load-balancing and server-affinity options of the connection factory are enabled.
The JMSApp application uses the connection factory JMSAppCF created in the previous recipe
to connect and publish JMS messages to the distributed queue JMSAppQueue .
Disabling the server affinity of the connection factory will force the load balance when publishing
the JMS messages to the distributed queue. There is the drawback of the overhead of an
additional TCP connection from the source Managed Server where the application request is
running to the target Managed Server where the queue member of the distributed queue
is hosted.
This recipe shows the steps to configure the server affinity.
Getting ready
To change the server affinity configuration, access the Administration Console.
How to do it...
To set the server affinity, follow these steps:
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. Expand the Services tree on the left; click on Messaging and then on JMS Modules.
4. Click on the JMSAppModule link to open its Configuration page.
5. Click on the JMSAppConnectionFactory link and then click on the Load Balance
tab to open the load-balancing options.
 
Search WWH ::




Custom Search