Sun Java logo     Previous      Contents      Index      Next     

Sun logo
Sun Java System Message Queue 3 2005Q4 Administration Guide 

Chapter 16
Administered Object Attribute Reference

This chapter provides reference information about the attributes of administered objects. It consists of the following sections:


Connection Factory Attributes

The attributes of a connection factory object are grouped into categories described in the following sections below:

Connection Handling

Table 16-1 lists the connection factory attributes for connection handling.

Table 16-1  Connection Factory Attributes for Connection Handling 

Attribute

Type

Default

Description

imqAddressList

String

An existing Message Queue 3.0 address, if any; if none, the first entry in Table 16-2

List of broker addresses

The list consists of one or more message server 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.

imqAddressListBehavior

String

PRIORITY

Order in which to attempt connection to server addresses:

  PRIORITY  Order specified in address list

  RANDOM    Random order

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.

imqAddressListIterations

Integer

5

Number of times to iterate through address list attempting to establish or reestablish a connection

A value of -1 denotes an unlimited number of iterations.

imqPingInterval

Integer

30

Interval, in seconds, at which to test connection between client and broker

A value of 0 or -1 disables periodic testing of the connection.

imqReconnectEnabled

Boolean

false

Attempt to reestablish a lost connection?

imqReconnectAttempts

Integer

0

Number of times to attempt connection (or reconnection) to each address in address list before moving on to next

A value of -1 denotes an unliimited number of connection attempts; attempt repeatedly to connect to first address until successful.

imqReconnectInterval

Long integer

3000

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.

imqSSLIsHostTrusted

Boolean

true

Accept broker’s self-signed authentication certificate?

NOTE: To use signed certificates from a certificate authority, set this attribute to false.

The value of the imqAddressList attribute is a comma-separated string specifying one or more message server 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 16-2 and address denotes the server address itself. The exact syntax for specifying the address depends on the addressing scheme, as shown in the last column of the table.

Table 16-2  Message Server Addressing Schemes 

Scheme

Service

Syntax

Description

mq

jms or
ssljms

[hostName][:portNumber][/serviceName]

Assign port dynamically for jms or ssljms connection service.

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:

  hostName = localhost
  
portNumber = 7676
  
serviceName = jms

For the ssljms connection service, all variables must be specified explicitly.

mqtcp

jms

hostName:portNumber/jms

Connect to specified port using jms connection service.

Bypasses the Port Mapper and makes a TCP connection directly to the specified host name and port number.

mqssl

ssljms

hostName:portNumber/ssljms

Connect to specified port using ssljms connection service.

Bypasses the Port Mapper and makes a secure SSL connection directly to the specified host name and port number.

http

httpjms

http://hostName:portNumber/contextRoot/tunnel

If multiple broker instances use the same tunnel servlet, the following syntax connects to a specific broker instance rather than a randomly selected one:

http://hostName:portNumber/contextRoot/tunnel?
   ServerName=
hostName:instanceName

Connect to specified port using httpjms connection service.

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.

https

httpsjms

https://hostName:portNumber/contextRoot/tunnel

If multiple broker instances use the same tunnel servlet, the following syntax connects to a specific broker instance rather than a randomly selected one:

https://hostName:portNumber/contextRoot/tunnel?
   ServerName=
hostName:instanceName

Connect to specified port using httpsjms connection service.

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 16-3 shows examples of the various address formats.

Table 16-3  Message Server Address Examples 

Service

Broker Host

Port

Example Address

Not specified

Not specified

Not specified

No address
(mq://localHost:7676/jms)

Not specified

Specified host

Not specified

myBkrHost
(mq://myBkrHost:7676/jms)

Not specified

Not specified

Specified Port Mapper port

1012
(mq://localHost:1012/jms)

ssljms

Local host

Standard Port Mapper port

mq://localHost:7676/ssljms

ssljms

Specified host

Standard Port Mapper port

mq://myBkrHost:7676/ssljms

ssljms

Specified host

Specified Port Mapper port

mq://myBkrHost:1012/ssljms

jms

Local host

Specified service port

mqtcp://localhost:1032/jms

ssljms

Specified host

Specified service port

mqssl://myBkrHost:1034/ssljms

httpjms

Not applicable

Not applicable

http://websrvr1:8085/imq/tunnel

httpsjms

Not applicable

Not applicable

https://websrvr2:8090/imq/tunnel

Client Identification

Table 16-4 lists the connection factory attributes for client identification.

Table 16-4  Connection Factory Attributes for Client Identification 

Attribute

Type

Default

Description

imqDefaultUsername

String

guest

Default user name for authenticating with broker

imqDefaultPassword

String

guest

Default password for authenticating with broker

imqConfiguredClientID

String

null

Administratively configured client identifier

imqDisableSetClientID

Boolean

false

Prevent client from changing client identifier using setClientID method?

Reliability and Flow Control

Table 16-5 lists the connection factory attributes for reliability and flow control.

Table 16-5  Connection Factory Attributes for Reliability and Flow Control 

Attribute

Type

Default

Description

imqAckTimeout

String

0

Maximum time, in milliseconds, to wait for broker acknowledgment before throwing an exception

A value of 0 denotes no timeout (wait indefinitely).

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.

imqConnectionFlowCount

Integer

100

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 0 disables metering of message delivery and may cause Message Queue control messages to be blocked by heavy payload message traffic.

imqConnectionFlowLimitEnabled

Boolean

false

Limit message flow at connection level?

imqConnectionFlowLimit

Integer

1000

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 imqConnectionFlowCount) exceeds this limit. Delivery resumes only when the number of pending messages falls below the limit. This prevents the client from being overwhelmed with pending messages that might cause it to run out of memory.

This attribute is ignored if imqConnectionFlowLimitEnabled is false.

imqConsumerFlowLimit

Integer

100

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 imqConsumerFlowThreshold. This canbe used to improve load balancing among multiple consumers and prevent any single consumer from starving others on the same connection.

This limit can be overridden by a lower value set for a queue’s own consumerFlowLimit attribute (see Chapter 15, "Physical Destination Property Reference"). Note also that message delivery to all consumers on a connection is subject to the overall limit specified by imqConnectionFlowLimit.

imqConsumerFlowThreshold

Integer

50

Number of messages per consumer buffered in the client runtime, as a percentage of imqConsumerFlowLimit, below which to resume message delivery

Queue Browser and Server Sessions

Table 16-6 lists the connection factory attributes for queue browsing and server sessions.

Table 16-6  Connection Factory Attributes for Queue Browser and Server Sessions

Attribute

Type

Default

Description

imqQueueBrowserMaxMessagesPerRetrieve

Integer

1000

Maximum number of messages to retrieve at one time when browsing contents of a queue destination

imqQueueBrowserRetrieveTimeout

Long integer

60000

Maximum time, in milliseconds, to wait to retrieve messages, when browsing contents of a queue destination, before throwing an exception

imqLoadMaxToServerSession

Boolean

true

Load up to maximum number of messages into a server session?

If false, the client will load only a single message at a time.

This attribute applies only to JMS application server facilities.

Setting Standard Message Properties

The connection factory attributes listed in Table 16-7 control whether the Message Queue client runtime sets certain standard message properties defined in the Java Message Service Specification.

Table 16-7  Connection Factory Attributes for Standard Message Properties 

Property

Type

Default

Description

imqSetJMSXUserID

Boolean

false

Set JMSXUserID property (identity of user sending message) for produced messages?

imqSetJMSXAppID

Boolean

false

Set JMSXAppID property (identity of application sending message) for produced messages?

imqSetJMSXProducerTXID

Boolean

false

Set JMSXProducerTXID property (transaction identifier of transaction within which message was produced) for produced messages?

imqSetJMSXConsumerTXID

Boolean

false

Set JMSXConsumerTXID property (transaction identifier of transaction within which message was consumed) for consumed messages?

imqSetJMSXRcvTimestamp

Boolean

false

Set JMSXRcvTimestamp property (time message delivered to consumer) for consumed messages?

Message Header Overrides

Table 16-8 lists the connection factory attributes for overriding JMS message header fields.

Table 16-8  Connection Factory Attributes for Message Header Overrides 

Attribute

Type

Default

Description

imqOverrideJMSDeliveryMode

Boolean

false

Allow client-set delivery mode to be overridden?

imqJMSDeliveryMode

Integer

2

Overriding value of delivery mode:

  1  Nonpersistent

  2  Persistent

imqOverrideJMSExpiration

Boolean

false

Allow client-set expiration time to be overridden?

imqJMSExpiration

Long integer

0

Overriding value of expiration time, in milliseconds

A value of 0 denotes an unlimited expiration time (message never expires).

imqOverrideJMSPriority

Boolean

false

Allow client-set priority level to be overridden?

imqJMSPriority

Integer

4 (normal)

Overriding value of priority level
(0 to 9)

imqOverrideJMSHeadersToTemporaryDestinations

Boolean

false

Apply overrides to temporary destinations?


Destination Attributes

Table 16-9 lists the attributes that can be set for a destination administered object.

Table 16-9  Destination Attributes 

Attribute

Type

Default

Description

imqDestinationName

String

Untitled_Destination_Object

Name of physical destination

The destination name may contain only alphanumeric characters (no spaces) and must begin with an alphabetic character or the underscore (_) or dollar sign ($) character. It may not begin with the characters mq.

imqDestinationDescription

String

None

Descriptive string for destination


SOAP Endpoint Attributes

Table 16-10 lists the attributes used to configure endpoint URLs for applications that use the Simple Object Access Protocol (SOAP); see the Message Queue Developer’s Guide for Java Clients for more information.

Table 16-10  SOAP Endpoint Attributes

Attribute

Type

Default

Description

imqSOAPEndpointList

String

None

List of one of more URLs representing SOAP endpoints to which to send messages, separated by spaces

Each URL should be associated with a servlet that can receive and process SOAP messages.

Example:

  http://www.serv1/ http://www.serv2/

If the list specifies more than one URL, messages are broadcast to all of them.

imqEndpointName

String

Untitled_Endpoint_Object

Name of SOAP endpoint

imqEndpointDescription

String

None

Descriptive string for SOAP endpoint.

Example:

  My endpoints for broadcast



Previous      Contents      Index      Next     


Part No: 819-2571-10.   Copyright 2005 Sun Microsystems, Inc. All rights reserved.