Table 12–8 lists the attributes for the connection-factory element in the JMS Bridge XML configuration file.
Table 12–8 connection-factory Attributes
Attribute |
Type |
Description |
---|---|---|
connect-attempt-interval-in-seconds |
Integer |
How long to wait before each connect attempt. Default value: 5 |
connect-attempts |
Integer |
The number of attempts for connecting. The value -1 means retry forever Default value: -1 |
idle-timeout-in-seconds |
Integer |
Close a connection if it is idle for more than this long. The value 0 indicates no idle timeout. This attribute is ignored for sources and for targets and DMQs that have their stay-connected attribute set to true. Default value: 1800 |
lookup-name |
String |
JNDI lookup name. If specified, the JNDI environment properties must specified as property subelements of this connection-factory element. The object returned by the lookup must be either javax.jms.ConnectionFactory or javax.jms.XAConnectionFactory type If not specified, a default connection factory to the Message Queue broker hosting the bridge is created with the properties in the property subelements. Default value: not set |
multi-rm |
Boolean |
Set to true if this connection factory will potentially create XA connections to more than one XA resource manager (that is, XAResource.isSame() is false among them). Also, add separate connection-factory for each such resource manager so that they will be registered separately to the built-in XA transaction coordinator. Default value: false |
String |
The password for the user specified in username. Default value: not set |
|
ref-name |
String |
Unique name for this connection factory. Default value: no default |
username |
String |
The user name to be used to create connections from this connection factory. If this attribute is set, the password attribute must also be set. If not set, connections are created using the no-argument createConnection() method of the connection factory. Default value: not set |