Oracle GlassFish Server Message Queue Administration Guide Release 4.5.2 Part Number E24943-01 |
|
|
View PDF |
This chapter provides reference information about the attributes of administered objects. It consists of the following sections:
The attributes of a connection factory object are grouped into categories described in the following sections below:
Table 19-1 lists the connection factory attributes for connection handling.
Table 19-1 Connection Factory Attributes for Connection Handling
Attribute | Type | Default Value | Description |
---|---|---|---|
|
String |
An existing Message Queue 3.0 address, if any; if none, the first entry in Table 19-2 |
List of broker addresses The list consists of one or more addresses, separated by commas. Each address specifies (or implies) the host name, port number, and connection service for a broker instance to which the client can connect. Address syntax varies depending on the connection service and port assignment method; see below for details. Literal IP addresses as host names: You can use a literal IPv4 or IPv6 address as a host name. If you use a literal IPv6 address, its format must conform to RFC2732, Format for Literal IPv6 Addresses in URL's. Note: In an enhanced broker cluster, the value of this attribute is updated dynamically as brokers enter and leave the cluster, so that it always reflects the cluster's current membership. |
|
String |
|
Order in which to attempt connection to broker addresses:
Note: If many clients share the same connection factory, specify random connection order to prevent them from all attempting to connect to the same address. |
|
Integer |
|
Number of times to iterate through address list attempting to establish or reestablish a connection A value of Note: In the event of broker failure in an enhanced broker cluster, this attribute is ignored and the Message Queue client runtime iterates through the address list indefinitely until it succeeds in reconnecting to a takeover broker. The effect is equivalent to an |
|
Integer |
|
Interval, in seconds, at which to test connection between client and broker A value of |
|
Boolean |
|
Attempt to reestablish a lost connection? Note: In the event of broker failure in an enhanced broker cluster, this attribute is ignored and automatic reconnection is always attempted. The effect is equivalent to an |
|
Integer |
|
Number of times to attempt connection (or reconnection) to each address in address list before moving on to next A value of |
|
Long integer |
|
Interval, in milliseconds, between reconnection attempts This value applies both for successive attempts on a given address and for successive addresses in the list. Note: Too small a value may give the broker insufficient recovery time; too large a value may cause unacceptable connection delays. |
|
Long integer |
|
Socket timeout, in milliseconds, used when a TCP connection is made to the broker This value applies when connecting to the port mapper as well as when connecting to the required service. The timeout value |
|
Boolean |
|
Trust any certificate presented by broker? If If NOTE: To use signed certificates from a certification authority, set this attribute to |
The value of the imqAddressList
attribute is a comma-separated string specifying one or more broker addresses to which to connect. The general syntax for each address is as follows:
scheme:// address
where scheme identifies one of the addressing schemes shown in the first column of Table 19-2 and address denotes the broker address itself. The exact syntax for specifying the address depends on the addressing scheme, as shown in the last column of the table.
Table 19-2 Message Broker Addressing Schemes
Scheme | Service | Syntax | Description |
---|---|---|---|
|
|
[hostName][ |
Assign port dynamically for The address list entry specifies the host name and port number for the Message Queue Port Mapper. The Port Mapper itself dynamically assigns a port to be used for the connection. Default values:
For the Literal IP addresses as host names: You can use a literal IPv4 or IPv6 address as a host name. If you use a literal IPv6 address, its format must conform to RFC2732, Format for Literal IPv6 Addresses in URL's. |
|
|
hostName |
Connect to specified port using Bypasses the Port Mapper and makes a TCP connection directly to the specified host name and port number. |
|
|
hostName |
Connect to specified port using Bypasses the Port Mapper and makes a secure SSL connection directly to the specified host name and port number. |
|
|
If multiple broker instances use the same tunnel servlet, the following syntax connects to a specific broker instance rather than a randomly selected one:
|
Connect to specified port using Makes an HTTP connection to a Message Queue tunnel servlet at the specified URL. The broker must be configured to access the HTTP tunnel servlet. |
|
|
If multiple broker instances use the same tunnel servlet, the following syntax connects to a specific broker instance rather than a randomly selected one:
|
Connect to specified port using Makes a secure HTTPS connection to a Message Queue tunnel servlet at the specified URL. The broker must be configured to access the HTTPS tunnel servlet. |
Table 19-3 Message Broker Address Examples
Service | Broker Host | Port | Example Address |
---|---|---|---|
Not specified |
Not specified |
Not specified |
No address ( |
Not specified |
Specified host |
Not specified |
|
Not specified |
Not specified |
Specified Port Mapper port |
|
|
Local host |
Standard Port Mapper port |
|
|
Specified host |
Standard Port Mapper port |
|
|
Specified host |
Specified Port Mapper port |
|
|
Local host |
Specified service port |
|
|
Specified host |
Specified service port |
|
|
Not applicable |
Not applicable |
|
|
Not applicable |
Not applicable |
|
Table 19-4 lists the connection factory attributes for client identification.
Table 19-4 Connection Factory Attributes for Client Identification
Attribute | Type | Default Value | Description |
---|---|---|---|
|
String |
|
Default user name for authenticating with broker |
|
String |
|
Default password for authenticating with broker |
|
String |
|
Administratively configured client identifier |
|
Boolean |
|
Prevent client from changing client identifier using |
Table 19-5 lists the connection factory attributes for reliability and flow control.
Table 19-5 Connection Factory Attributes for Reliability and Flow Control
Attribute | Type | Default Value | Description |
---|---|---|---|
|
Boolean |
|
Should the connection to the broker be aborted when If the connection is aborted, the Message Queue Client Runtime operates as though the connection to the broker were broken. |
|
String |
|
Maximum time, in milliseconds, to wait for broker acknowledgment before throwing an exception A value of Note: In some situations, too low a value can cause premature timeout: for example, initial authentication of a user against an LDAP user repository using a secure (SSL) connection can take more than 30 seconds. |
|
Integer |
|
Number of payload messages in a metered batch Delivery of payload messages to the client is temporarily suspended after this number of messages, allowing any accumulated control messages to be delivered. Payload message delivery is resumed on notification by the client runtime, and continues until the count is again reached. A value of |
|
Boolean |
|
Limit message flow at connection level? |
|
Integer |
|
Maximum number of messages per connection to deliver and buffer for consumption Message delivery on a connection stops when the number of unconsumed payload messages pending (subject to flow metering governed by This attribute is ignored if |
|
Boolean |
|
Is message prefetching and buffering as specified by When set to This property should be set to |
|
Integer |
|
Maximum number of messages per consumer to deliver and buffer for consumption Message delivery to a given consumer stops when the number of unconsumed payload messages pending for that consumer exceeds this limit. Delivery resumes only when the number of pending messages for the consumer falls below the percentage specified by A value of This limit can be overridden by a lower value set for a queue's own |
|
Integer |
|
Number of messages per consumer buffered in the client runtime, as a percentage of |
|
Integer |
|
Maximum time, in milliseconds, to wait for a ping reply or any data sent from the broker since its last ping reply or data sent. A value of This value is ignored if the |
Table 19-6 lists the connection factory attributes for queue browsing and server sessions.
Table 19-6 Connection Factory Attributes for Queue Browser and Server Sessions
Attribute | Type | Default Value | Description |
---|---|---|---|
|
Integer |
|
Maximum number of messages to retrieve at one time when browsing contents of a queue destination Note: This attribute does not affect the total number of messages browsed, only the way they are chunked for delivery to the client runtime (fewer but larger chunks or more but smaller ones). The client application will always receive all messages in the queue. Changing the attribute's value may affect performance, but will not affect the total amount of data retrieved. |
|
Long integer |
|
Maximum time, in milliseconds, to wait to retrieve messages, when browsing contents of a queue destination, before throwing an exception |
|
Boolean |
|
Load up to maximum number of messages into a server session? If This attribute applies only to JMS application server facilities. |
The connection factory attributes listed in Table 19-7 control whether the Message Queue client runtime sets certain standard message properties defined in the Java Message Service Specification.
Table 19-7 Connection Factory Attributes for Standard Message Properties
Property | Type | Default Value | Description |
---|---|---|---|
|
Boolean |
|
Set |
|
Boolean |
|
Set |
|
Boolean |
|
Set |
|
Boolean |
|
Set |
|
Boolean |
|
Set |
Table 19-8 lists the connection factory attributes for overriding JMS message header fields.
Table 19-8 Connection Factory Attributes for Message Header Overrides
Attribute | Type | Default Value | Description |
---|---|---|---|
|
Boolean |
|
Allow client-set delivery mode to be overridden? |
|
Integer |
|
Overriding value of delivery mode:
|
|
Boolean |
|
Allow client-set expiration time to be overridden? |
|
Long integer |
|
Overriding value of expiration time, in milliseconds A value of |
|
Boolean |
|
Allow client-set priority level to be overridden? |
|
Integer |
|
Overriding value of priority level ( |
|
Boolean |
|
Apply overrides to temporary destinations? |
Table 19-9 lists the attributes that can be set for a destination administered object.
Table 19-9 Destination Attributes
Attribute | Type | Default Value | Description |
---|---|---|---|
|
String |
|
Name of physical destination The destination name may contain only alphanumeric characters (no spaces) and must begin with an alphabetic character or the underscore ( |
|
String |
None |
Descriptive string for destination |