WebLogic Server Cluster: Enable Load Balancing with a Multithreaded JMS Consumer and Distributed Queue (Doc ID 1296758.1)

Last updated on FEBRUARY 11, 2017

Applies to:

Oracle Weblogic Server - Version 9.2 and later
Information in this document applies to any platform.

Symptoms

Consider a Multithreaded Spring application as a JMS consumer and a distributed queue deployed on cluster (at least two WebLogic Server (WLS) instances).

When the URL provided is a cluster URL, for example:

t3://servername1:port1,servername2:port2

all threads are connected to the same Weblogic instance and switch to the other instance when there are no more message on current JMS server.

The threads are not load balanced on all members of the cluster; all threads are connected to the same WLS instance.

Changes

Below is a snippet of the standalone client program used to receive messages from the distributed queue:

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms