Table 0-25 Additional Properties for JMS Connection Factories
Property Name
|
Description
|
ClientId
|
Specifies a client ID for a connection factory that will be used by a durable subscriber.
|
AddressList
|
Specifies the names (and, optionally, port numbers) of a message broker instance or instances with which your application will communicate. Each address in the list specifies the host name (and, optionally, host port and connection service) for the connection. For example, the value might be earth or earth:7677 . Specify the port number if the message broker is running on a port other than the default (7676). If you specify multiple hosts and ports in a clustered environment, the first available host on the list is used unless the AddressListBehavior property is set to RANDOM .
For details, see the Sun Java System Message Queue 3 2004Q4 Developer’s Guide for Java Clients.
Default: The local host and default port number (7676). The client will attempt a connection to a broker on port 7676 of the local host.
|
MessageServiceAddressList
|
Same as AddressList . This property name is deprecated. Use AddressList instead.
|
UserName
|
The user name for the connection factory.
Default: guest
|
Password
|
The password for the connection factory.
Default: guest
|
ReconnectEnabled
|
If enabled (value = true), specifies that the client runtime attempts to reconnect to a message server (or the list of addresses in the AddressList ) when a connection is lost.
Default: false
|
ReconnectAttempts
|
Specifies the number of attempts to connect (or reconnect) for each address in the AddressList before the client runtime tries the next address in the list. A value of -1 indicates that the number of reconnect attempts is unlimited (the client runtime attempts to connect to the first address until it succeeds).
Default: 6
|
ReconnectInterval
|
Specifies the interval in milliseconds between reconnect attempts. This applies for attempts on each address in the AddressList and for successive addresses in the list. If the interval is too short, the broker does not have time to recover. If it is too long, the reconnect might represent an unacceptable delay.
Default: 30000
|
AddressListBehavior
|
Specifies whether connection attempts are in the order of addresses in the AddressList attribute (PRIORITY ) or in a random order (RANDOM ).
PRIORITY means that the reconnect always tries to connect to the first server address in the AddressList and uses another address only if the first broker is not available.
If many clients are likely to attempt a connection using the same connection factory, specify RANDOM to prevent them from all being connected to the same address.
Default: PRIORITY
|
AddressListIterations
|
Specifies the number of times the client runtime iterates through the AddressList in an effort to establish (or re-establish) a connection). A value of -1 indicates that the number of attempts is unlimited.
Default: -1
|