en.help.ref-jmsconnectionproperties.html Maven / Gradle / Ivy
Show all versions of console-jms-plugin-help
Properties Specific to JMS Connection Factories
The following additional properties are available for a JMS connection factory.
- 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 applications 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 the property setting specifies 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 Message Queue Developer’s Guide for Java Clients.
The default value is the local host and default port number (7676). The client will attempt a connection to a broker on port 7676 of the local host.
- UserName
The user name for the connection factory.
The default value is guest.
- Password
The password for the connection factory.
The default value is guest.
- ReconnectEnabled
If set to 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.
The default value is true.
- 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).
The default value is 3.
- 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.
The default value is 30000.
- AddressListBehavior
Specifies whether connection attempts are in the order of addresses in the AddressList attribute (PRIORITY) or in a random order (RANDOM).
RANDOM means that the reconnect chooses a random address from the AddressList. If many clients are likely to attempt a connection using the same connection factory, this value prevents them from all being connected to the same address.
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.
The default value is RANDOM.
- AddressListIterations
Specifies the number of times the client runtime iterates through the AddressList in an effort to establish (or reestablish) a connection). A value of -1 indicates that the number of attempts is unlimited.
The default value is 3.
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices