# LoadBalancingParamsBean

Overview | Related MBeans | Attributes | Operations

## Overview

The load-balancing parameters allow client to choose how they wish to distribute the work to the configured servers.

Security roles | The following roles have read, write, and invoke permission for all non-encrypted attributes and operations in this MBean: Deployer
Fully Qualified Interface Name | If you use the `getMBeanInfo` operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name: `weblogic.j2ee.descriptor.wl.LoadBalancingParamsBean`
Factory Methods | No factory methods. Instances of this MBean are created automatically.
Access Points | You can access this MBean from the following MBean attributes:
JMSConnectionFactoryBean.LoadBalancingParams |

## Attributes

This section describes the following attributes:

LoadBalancingEnabled ServerAffinityEnabled |

### LoadBalancingEnabled

Specifies whether non-anonymous producers created through a connection factory are load balanced within a distributed destination on a per-call basis.

- If enabled, the associated message producers are load balanced on every `send()` or `publish()` .

- If disabled, the associated message producers are load balanced on the first `send()` or `publish()`.

Privileges | Read/Write
Type | boolean
Default Value | true

### ServerAffinityEnabled

Specifies whether a server instance that is load balancing consumers or producers across multiple members destinations of a distributed destination, will first attempt to load balance across any other physical destinations that are also running on the same server instance.

Privileges | Read/Write
Type | boolean
Default Value | true

## Operations

This section describes the following operations:

isSet unSet |

### isSet

Return true if the given property has been explicitly set in this bean.

Operation Name | `"isSet"`
Parameters | `Object [] { propertyName }` where: `propertyName` is an object of type `java.lang.String` that specifies: property to check
Signature | `String [] { "java.lang.String" }`
Returns | `boolean`
Exceptions | `java.lang.IllegalArgumentException` IllegalArgumentException if propertyName is not a recognized property

### unSet

Restore the given property to its default value.

Operation Name | `"unSet"`
Parameters | `Object [] { propertyName }` where: `propertyName` is an object of type `java.lang.String` that specifies: property to restore
Signature | `String [] { "java.lang.String" }`
Returns | `void`
Exceptions | `java.lang.IllegalArgumentException` UnsupportedOperationException if called on a runtime implementation.