Class ConnectionConfiguration
ConnectionConfiguration class contains OpenMQ specific connection configuration property names and
special values.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIf this property is set to true, the MQ Client Runtime will abort the connection to the MQ broker when timeout, as specified byimqPingAckTimeout, in waiting for a 'ping' reply or any data sent from the MQ broker since last 'ping', then the MQ Client Runtime will perform actions as if the connection is broken.static final StringThis property is used to control the reliability of message acknowledgement for every message that is consumed by a MessageConsumer.static final StringThis property is used to control the reliability of every message that is produced by a MessageProducer.static final StringThis property holds the the maximum time, in milliseconds, that a OpenMQ Client Application will wait before throwing a JMSException when awaiting an acknowledgement from the OpenMQ Message Service.static final StringThis property holds the address list that will be used to connect to the OpenMQ Message Service.static final StringThis property determines how OpenMQ will select entries from theimqAddressListproperty to use when making a connection to the OpenMQ Message Service.static final StringThis property holds the number of times that OpenMQ will iterate throughimqAddressListwhen connecting to the OpenmMQ Service.static final StringThis property holds the the minimum time, in milliseconds, that the MQ client runtime will wait for an asynchronous send to complete before calling the CompletionListener's onException method with timed out exceptionstatic final StringThis property holds the hostname that will be used to connect to the OpenMQ Message Service using the TCP and TLS ConnectionHandler classes provided with OpenMQ.static final StringThis property holds the Primary Port number that will be used to connect to the OpenMQ Message Service using the TCP and TLS ConnectionHandler classes provided with OpenMQ.static final StringThis property holds the connection service name that will be used to connect to the OpenMQ Message Service using the TCP and TLS ConnectionHandler classes provided with OpenMQ.static final StringThis property holds the actual port number that will be used to connect to the OpenMQ Message Service using the TCP and TLS ConnectionHandler classes provided with OpenMQ.static final StringThis property holds the value of an administratively configured ClientID.static final StringThis property manages the number of JMS messages that will flow from the OpenMQ Message Service to the MQ Client between each 'resume flow' notification from the Client to the Message Service to receive additional JMS messages.static final StringThis property specifies the number of uncomsumed JMS messages that a OpenMQ Client can hold, above which the MQ Client will refrain from sending a 'resume flow' notification to the OpenMQ Message Service.static final StringThis property indicates whether the OpenMQ Client should limit the flow of JMS messages from the OpenMQ Message Service using the number of messages specified inimqConnectionFlowLimit.static final StringThis property holds the name of the class that will be used to handle the connection to the OpenMQ Message Service and is required when the value of theimqConnectionTypeproperty is set to...static final StringThis property holds the connection type used to connect to the OpenMQ Message Service.static final StringThis property holds the URL that will be used when connecting to the OpenMQ Message Service using the HTTP ConnectionHandler class provided with OpenMQ.static final StringThis property specifies the upper limit of the number of messages per consumer that will be delivered and buffered in the MQ client.static final StringWhen this property is set to false, there will be no prefetch next message (except the first message) from broker to a consumer, and consumer flow control propertiesimqConsumerFlowLimitandimqConsumerFlowThresholdwill be ignored.static final StringThis property controls when JMS message delivery will resume to consumers that have had their message delivery stopped due to the number of messages buffered in the MQ client exceeding the limit set byimqConsumerFlowLimitand is expressed as a percentage ofimqConsumerFlowLimit.static final StringThis property holds the default password that will be used to authenticate with the OpenMQ Message Service.static final StringThis property holds the default username that will be used to authenticate with the OpenMQ Message Service.static final StringThis property indicates whether the OpenMQ Client Application is prevented from changing the ClientID using thesetClientID()method injakarta.jms.Connection.static final StringThis property indicates whether the client identifier requested and used by this connection is to be acquired in 'shared' mode.static final StringThis property holds the administratively configured value of the JMS Message HeaderJMSDeliveryMode.static final StringThis property holds the administratively configured value of the JMS Message HeaderJMSExpiration.static final StringThis property holds the administratively configured value of the JMS Message HeaderJMSPriority.static final StringThis property specifies the key store locationstatic final StringThis property specifies the key store password.static final StringThis property indicates how the OpenMQ ConnectionConsumer should load messages into a ServerSession's JMS Session.static final StringFor AUTO_ACKNOWLEDGE and DUPS_OK_ACKNOWLEDGE, maximum redelivery attempts (>= 1) when a jakarta.jms.MessageListener.onMessage() throws RuntimeException.static final StringFor AUTO_ACKNOWLEDGE and DUPS_OK_ACKNOWLEDGE, the interval in milliseconds for each subsequent redelivery attempt after first attempt when a jakarta.jms.MessageListener.onMessage() throws RuntimeException.static final StringThis property indicates whether OpenMQ should override the JMS Message HeaderJMSDeliveryModewhich can be set using the JMS APIs.static final StringThis property indicates whether OpenMQ should override the JMS Message HeaderJMSExpirationwhich can be set using the JMS APIs.static final StringThis property indicates whether OpenMQ should override the JMS Message Headers on Messages that are sent to Temporary Destinations.static final StringThis property indicates whether OpenMQ should override the JMS Message HeaderJMSPrioritywhich can be set using the JMS APIs.static final StringWhenimqAbortOnPingAckTimeoutis true, this property specifies maximum time, in milliseconds, that MQ Client Runtime will wait for a ping reply or any data sent from the MQ broker since last 'ping'.static final StringThis property specifies the 'ping' interval, in seconds, between successive attempts made by an MQ Connection to verify that its physical connection to the MQ broker is still functioning properly.static final StringThis property defines port mapper client socket read timeout, in milliseconds.static final StringThis property holds the the maximum number of messages that will be retrieved at one time when a OpenMQ Client Application is enumerating through the messages on a Queue using a QueueBrowser.static final StringThis property holds the the maximum time, in milliseconds, that a OpenMQ Client Application will wait before throwing a NoSuchElementException when retrieving elements from a QueueBrowser Enumeration.static final StringThis property holds the number of reconnect attempts for each address in theimqAddressListproperty that the OpenMQ Client Application will make before moving on the the next address inimqAddressList.static final StringThis property indicates whether the OpenMQ Client Application will attempt to reconnect to the OpenMQ Message Service upon losing its connection.static final StringThis property specifies the interval, in milliseconds, between successive reconnect attempts made by the MQ Client Application to the OpenMQ Message Service.static final StringThis property indicates whether OpenMQ should set the JMSXAppID property on produced messages.static final StringThis property indicates whether OpenMQ should set the JMSXConsumerTXID property on consumed messages.static final StringThis property indicates whether OpenMQ should set the JMSXProducerTXID property on produced messages.static final StringThis property indicates whether OpenMQ should set the JMSXRcvTimestamp property on consumed messages.static final StringThis property indicates whether OpenMQ should set the JMSXUserID property on produced messages.static final StringThis property defines the socket timeout, in milliseconds, used when a TCP connection is made to the broker.static final StringThis property indicates whether the host is trusted when connecting to the OpenMQ Message Service using the TLS ConnectionHandler class provided with OpenMQ.static final StringThis property holds the TLS Provider Classname that will be used when connecting to the OpenMQ Message Service using the TLS ConnectionHandler class provided with OpenMQ.static final StringThis constant is used to set the value ofimqJMSDeliveryModeto NON_PERSISTENT when the JMSDeliveryMode JMS Message Header is administratively configured.static final StringThis constant is used to set the value ofimqJMSDeliveryModeto PERSISTENT when the JMSDeliveryMode JMS Message Header is administratively configured. -
Method Summary
-
Field Details
-
imqAddressList
This property holds the address list that will be used to connect to the OpenMQ Message Service.Message Server Address Syntax
The syntax for specifying a message server address is as follows:
scheme://address_syntax
where the
schemeandaddress_syntaxare described in the folowing table.scheme and address_syntax for a message server address Scheme Connection Service Description Syntax mqjms
and
ssljmsThe MQ Port Mapper at the specified host and port will handle the connection request, dynamically assigning a port based on the specified connection service. Once the port number is known, MQ makes the connection. [hostName][:port][/serviceName]
Defaults (for jms service only):
hostName = localhost
port = 7676
serviceName = jmsmqtcpjmsMQ makes a direct tcp connection to the specified host and port to establish a connection. hostName:port/jmsmqsslssljmsMQ makes a direct, secure ssl connection to the specified host and port to establish a connection. hostName:port/ssljmshtttphttpjmsMQ makes a direct HTTP connection to the specified MQ tunnel servlet URL. (The broker must be configured to access the tunnel servlet.) HTTPtunnelServletURLhtttpshttpsjmsMQ makes a direct HTTPS connection to the specified MQ tunnel servlet URL. (The broker must be configured to access the tunnel servlet.) HTTPStunnelServletURLThe following table shows how the message server address syntax applies in some typical cases.
typical message server address syntax applications Connection Service Broker Host Port Example Address Unspecified Unspecified Unspecified Default
(mq://localHost:7676/jms)Unspecified Specified Host Unspecified myBkrHost
(mq://myBkrHost:7676/jms)Unspecified Unspecified Specified Portmapper Port 1012
(mq://localHost:1012/jms)ssljmsLocal Host Default Portmapper Port mq://localHost:7676/ssljmsssljmsSpecified Host Default Portmapper Port mq://myBkrHost:7676/ssljmsssljmsSpecified Host Specified Portmapper Port mq://myBkrHost:1012/ssljmsjmsLocal Host Specified Service Port mqtcp://localhost:1032/jmsssljmsSpecified Host Specified Service Port mqssl://myBkrHost:1034/ssljmshttpjmsN/A N/A http://websrvr1:8085/imq/tunnelhttpsjmsN/A N/A https://websrvr2:8090/imq/tunnelThe default value of this property is
empty -
imqAddressListIterations
This property holds the number of times that OpenMQ will iterate throughimqAddressListwhen connecting to the OpenmMQ Service.The default value of this property is
1 -
imqAddressListBehavior
This property determines how OpenMQ will select entries from theimqAddressListproperty to use when making a connection to the OpenMQ Message Service.The acceptable values for this property are
PRIORITYandRANDOM.When
PRIORITYis used, OpenMQ will start with the firstentry inimqAddressListwhen attempting to make the first connection to the OpenMQ Message Service.Subsequently, when OpenMQ is attempting to re-connect to the Message Service, it will use successive entries from
imqAddressListin the order they are specified.When
RANDOMis used, OpenMQ will start with a random entry inimqAddressListwhen attempting to make the first connection to the OpenMQ Message Service.Subsequently, when OpenMQ is attempting to re-connect to the Message Service, it will use entries in the order they are specified in
imqAddressListstarting with the initial randomly chosen entry.The default value of this property is
PRIORITY -
imqConnectionType
This property holds the connection type used to connect to the OpenMQ Message Service.Note that this property is superseded by the
imqAddressListproperty and is present only for compatibility with MQ 3.0 clients. This property may be removed in the next major version of MQ.The default value of this property is
TCPThe allowable values are
TCP,TLS,HTTP,and the special value - ...When the special value of
...is used, the classname specified in the propertyimqConnectionHandleris required to handle the connection to the OpenMQ Message Service.- See Also:
-
imqConnectionHandler
This property holds the name of the class that will be used to handle the connection to the OpenMQ Message Service and is required when the value of theimqConnectionTypeproperty is set to...This property is not normally specified and will assume the classname handling the ConnectionType specified in
imqConnectionType. However, if specified, this property overridesimqConnectionType.The default value of this property is
com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler- See Also:
-
imqDefaultUsername
This property holds the default username that will be used to authenticate with the OpenMQ Message Service.The default value of this property is
guest- See Also:
-
imqDefaultPassword
This property holds the default password that will be used to authenticate with the OpenMQ Message Service.The default value of this property is
guest- See Also:
-
imqAckTimeout
This property holds the the maximum time, in milliseconds, that a OpenMQ Client Application will wait before throwing a JMSException when awaiting an acknowledgement from the OpenMQ Message Service.A value of
0indicates that it will wait indefinitely.The default value for this property is
0i.e. indefinitely.- See Also:
-
imqAsyncSendCompletionWaitTimeout
This property holds the the minimum time, in milliseconds, that the MQ client runtime will wait for an asynchronous send to complete before calling the CompletionListener's onException method with timed out exceptionA value of
0is not allowed.The default value for this property is
180000- See Also:
-
imqReconnectEnabled
This property indicates whether the OpenMQ Client Application will attempt to reconnect to the OpenMQ Message Service upon losing its connection.The default value for this property is
false- See Also:
-
imqReconnectInterval
This property specifies the interval, in milliseconds, between successive reconnect attempts made by the MQ Client Application to the OpenMQ Message Service.The default value for this property is
30000milliseconds.- See Also:
-
imqReconnectAttempts
This property holds the number of reconnect attempts for each address in theimqAddressListproperty that the OpenMQ Client Application will make before moving on the the next address inimqAddressList. will make in trying to reconnect to the OpenMQ Message Service. A value of-1indicates that the MQ Client Application will make an unlimited number of reconnect attempts.Note that this property is only applicable when
imqReconnectEnabledis set totrue.The default value for this property is
0- i.e. No reconnect attempts.- See Also:
-
imqPingInterval
This property specifies the 'ping' interval, in seconds, between successive attempts made by an MQ Connection to verify that its physical connection to the MQ broker is still functioning properly. The MQ Client Runtime uses this value to set up the frequency of 'pings' made by MQ Connections that originate from this ConnectionFactory. Valid values include all positive integers indicating the number of seconds to delay between successive 'pings'. A value of0, or-1indicates that the MQ Connection will disable this 'ping' functionality.The default value for this property is
30- i.e. 30 seconds between 'pings'.- See Also:
-
imqPingAckTimeout
WhenimqAbortOnPingAckTimeoutis true, this property specifies maximum time, in milliseconds, that MQ Client Runtime will wait for a ping reply or any data sent from the MQ broker since last 'ping'. This property is ignored ifimqAbortOnPingAckTimeoutis false.A value of
0indicates no timeoutThe default value for this property is
0 -
imqSocketConnectTimeout
This property defines the socket timeout, in milliseconds, used when a TCP connection is made to the broker. A timeout of zero is interpreted as an infinite timeout. The connection will then block until established or an error occurs. This property is used when connecting to the port mapper as well as when connecting to the required service.- See Also:
-
imqPortMapperSoTimeout
This property defines port mapper client socket read timeout, in milliseconds.A value of 0 indicates no timeout
The value of this property is not set by default.
- See Also:
-
imqKeyStore
This property specifies the key store locationThe value of this property is not set by default.
- See Also:
-
imqKeyStorePassword
This property specifies the key store password. Set this property to a non-null value will make the connection capable of SSL client authenication if requested by broker. If it is set to empty string, Java system property javax.net.ssl.keyStorePassword will be used if setThe value of this property is not set by default.
- See Also:
-
imqAbortOnPingAckTimeout
If this property is set to true, the MQ Client Runtime will abort the connection to the MQ broker when timeout, as specified byimqPingAckTimeout, in waiting for a 'ping' reply or any data sent from the MQ broker since last 'ping', then the MQ Client Runtime will perform actions as if the connection is broken.- See Also:
-
imqSetJMSXAppID
This property indicates whether OpenMQ should set the JMSXAppID property on produced messages.The default value of this property is
false- See Also:
-
imqSetJMSXUserID
This property indicates whether OpenMQ should set the JMSXUserID property on produced messages.The default value of this property is
false- See Also:
-
imqSetJMSXProducerTXID
This property indicates whether OpenMQ should set the JMSXProducerTXID property on produced messages.The default value of this property is
false- See Also:
-
imqSetJMSXConsumerTXID
This property indicates whether OpenMQ should set the JMSXConsumerTXID property on consumed messages.The default value of this property is
false- See Also:
-
imqSetJMSXRcvTimestamp
This property indicates whether OpenMQ should set the JMSXRcvTimestamp property on consumed messages.The default value of this property is
false- See Also:
-
imqBrokerHostName
This property holds the hostname that will be used to connect to the OpenMQ Message Service using the TCP and TLS ConnectionHandler classes provided with OpenMQ.Note that this property is superseded by the
imqAddressListproperty and is present only for compatibility with MQ 3.0 clients. This property may be removed in the next major version of MQ.The default value of this property is
localhost- See Also:
-
imqBrokerHostPort
This property holds the Primary Port number that will be used to connect to the OpenMQ Message Service using the TCP and TLS ConnectionHandler classes provided with OpenMQ.Note that this property is superseded by the
imqAddressListproperty and is present only for compatibility with MQ 3.0 clients. This property may be removed in the next major version of MQ.The OpenMQ Client uses this port to communicate with the Port Mapper Service to determine the actual port number of the connection service that it wishes to use.
The default value of this property is
7676- See Also:
-
imqBrokerServiceName
This property holds the connection service name that will be used to connect to the OpenMQ Message Service using the TCP and TLS ConnectionHandler classes provided with OpenMQ.Note that this property is superseded by the
imqAddressListproperty and is present only for compatibility with MQ 3.0 clients. This property may be removed in the next major version of MQ.By default, when the value of this property is
null, the MQ Client uses the Primary Port to connect to the MQ Message Service and subsequently uses the first connection service that corresponds to imqConnnectionType.When the value of this property is non-null, the MQ Client will first connect to the Port Mapper Service and then use the connection service that matches
imqBrokerServiceNameensuring that it corresponds to the rightimqConnectionType.The default value of this property is
null- See Also:
-
imqBrokerServicePort
This property holds the actual port number that will be used to connect to the OpenMQ Message Service using the TCP and TLS ConnectionHandler classes provided with OpenMQ.Note that this property is superseded by the
imqAddressListproperty and is present only for compatibility with MQ 3.0 clients. This property may be removed in the next major version of MQ.By default, when the value of this property is
0, the MQ Client uses the Primary Port to connect to the MQ Message Service and subsequently determines the actual port number of the connection service that it wishes to use.When the value of this property is non-zero, the MQ Client will use this port number to directly connect to the connection service that it wishes to use without first communicating with the Port Mapper Service
The default value of this property is
0- See Also:
-
imqSSLProviderClassname
This property holds the TLS Provider Classname that will be used when connecting to the OpenMQ Message Service using the TLS ConnectionHandler class provided with OpenMQ.The default value of this property is
com.sun.net.ssl.internal.ssl.Provider- See Also:
-
imqSSLIsHostTrusted
This property indicates whether the host is trusted when connecting to the OpenMQ Message Service using the TLS ConnectionHandler class provided with OpenMQ.If this value is set to
false, then the Root Certificate provided by the Certificate Authority must be available to the MQ Client Application when it connects to the MQ Message Service.The default value of this property is
false- See Also:
-
imqConnectionURL
This property holds the URL that will be used when connecting to the OpenMQ Message Service using the HTTP ConnectionHandler class provided with OpenMQ.Note that this property is superseded by the
imqAddressListproperty and is present only for compatibility with MQ 3.0 clients. This property may be removed in the next major version of MQ.Since the URL may be shared by multiple message service instances, the optional
ServerNameattribute can be used to identify a specific message service address. TheServerNameattribute is specified using the standard query string syntax. For example -http://localhost/imq/tunnel?ServerName=localhost:imqbrokerThe default value of this property is
http://localhost/imq/tunnel- See Also:
-
imqDisableSetClientID
This property indicates whether the OpenMQ Client Application is prevented from changing the ClientID using thesetClientID()method injakarta.jms.Connection.The default value of this property is
false- See Also:
-
imqConfiguredClientIDConnection.setClientID(clientID)Connection.getClientID()- Constant Field Values
-
imqConfiguredClientID
This property holds the value of an administratively configured ClientID.The default value of this property is
null- See Also:
-
imqDisableSetClientIDConnection.setClientID(clientID)Connection.getClientID()- Constant Field Values
-
imqAckOnProduce
This property is used to control the reliability of every message that is produced by a MessageProducer.The value of this property is used only when it is set. If the property is left unset, (the default behavior), the OpenMQ Client will ensure that every PERSISTENT message that is produced has been received by the OpenMQ Message Service before returning from the
send()andpublish()methods.If this property is set to
true, then the MQ Client will always wait until it ensures that the message has been reecived by the MQ Message Service before returning from thesend()andpublish()methods.If this property is set to
false, then the MQ Client will not wait until it ensures that the message has been reecived by the MQ Message Service before returning from thesend()andpublish()methods.When this property is used, it applies to all messages and not just the PERSISTENT messages.
The value of this property is not set by default.
- See Also:
-
imqAckOnAcknowledge
This property is used to control the reliability of message acknowledgement for every message that is consumed by a MessageConsumer.The value of this property is used only when it is set. If the property is left unset, (the default behavior), the OpenMQ Client will ensure that the acknowledgment for every PERSISTENT message that is consumed, has been received by the OpenMQ Message Service before the appropriate method returns - i.e. either the
Message.acknowledge()method in theCLIENT_ACKNOWLEDGEmode or thereceive()and/oronMessage()methods in theAUTO_ACKNOWLEDGEandDUPS_OK_ACKNOWLEDGEmodes and transacted Sessions.If this property is set to
true, then the MQ Client will always wait until it ensures that the acknowledgement for the message has been reecived by the MQ Message Service before returning from thesend()andpublish()methods.If this property is set to
false, then the MQ Client will not wait until it ensures that the acknowledgement for the message has been reecived by the MQ Message Service before returning from the appropriate method that is responsible for sending the acknowledgement - i.e. either theMessage.acknowledge()method in theCLIENT_ACKNOWLEDGEmode or thereceive()and/oronMessage()methods in theAUTO_ACKNOWLEDGEandDUPS_OK_ACKNOWLEDGEmodes and transacted Sessions.The value of this property is not set by default.
- See Also:
-
imqConsumerFlowLimit
This property specifies the upper limit of the number of messages per consumer that will be delivered and buffered in the MQ client. When the number of JMS messages delivered to a consumer reaches this limit, message delivery for that consumer stops. Message delivery is only resumed when the number of unconsumed messages for that consumer drops below the value determined usingimqConsumerFlowThresholdproperty.When a consumer is created, JMS messages for that consumer will begin to flow to the connection on which the consumer has been established. When the number of messages delivered to the consumer reaches the limit set by
imqConsumerFlowLimit, delivery of messages is stopped. As messages are consumed, the number of unconsumed messages buffered in the MQ client drops.When the number of unconsumed messages drops below the number determined by using
imqConsumerFlowThreshold, as a percentage ofimqConsumerFlowLimit, MQ resumes delivery of messages to that consumer until the number of messages delivered to that consumer reaches the limit set byimqConsumerFlowLimit.Note that the actual value of the message flow limit used by MQ for each consumer is the lower of two values - the
imqConsumerFlowLimitset on the ConnectionFactory and theconsumerFlowLimitvalue set on the physical destination that the consumer is established on.The default value for this property is
1000 -
imqConsumerFlowThreshold
This property controls when JMS message delivery will resume to consumers that have had their message delivery stopped due to the number of messages buffered in the MQ client exceeding the limit set byimqConsumerFlowLimitand is expressed as a percentage ofimqConsumerFlowLimit.See the description for the
imqConsumerFlowLimitproperty for how the two properties are used together to meter the flow of JMS messages to individual consumers.The default value for this property is
50(percent).- See Also:
-
imqConsumerFlowLimitPrefetch
When this property is set to false, there will be no prefetch next message (except the first message) from broker to a consumer, and consumer flow control propertiesimqConsumerFlowLimitandimqConsumerFlowThresholdwill be ignored. When it is set to true, the default, prefetch will take place as defined by consumer flow control properties. -
imqConnectionFlowCount
This property manages the number of JMS messages that will flow from the OpenMQ Message Service to the MQ Client between each 'resume flow' notification from the Client to the Message Service to receive additional JMS messages.If the count is set to
0then the Message Service will not restrict the number of JMS messages sent to the Client.After the Message Service has sent the number of JMS messages specified by this property, it will await a 'resume flow' notification from the Client before sending the next set of JMS messages. A non-zero value allows the Client to receive and process control messages from the Message Service even if there is a large number of JMS messages being held by the Message Service for delivery to this Client.
The MQ Client further has the ability to limit this JMS message flow using the property
imqConnectionFlowEnabledThe default value for this property is
100 -
imqConnectionFlowLimitEnabled
This property indicates whether the OpenMQ Client should limit the flow of JMS messages from the OpenMQ Message Service using the number of messages specified inimqConnectionFlowLimit.This property will only be active if the property
imqConnectionFlowCounthas been set to a non-zero value.If this property is set to
truethe Client will use the propertyimqConnectionFlowLimitas described below. Flow control will not be limited if this property is set tofalse.The default value for this property is
false -
imqConnectionFlowLimit
This property specifies the number of uncomsumed JMS messages that a OpenMQ Client can hold, above which the MQ Client will refrain from sending a 'resume flow' notification to the OpenMQ Message Service. This property is active only when theimqFlowControlEnabledproperty is set totrueand theimqFlowControlCountproperty is set to a non-zero value.The MQ Client will notify the OpenMQ Message Service ('resume flow') and receive JMS message (in chunks determined by
imqFlowControlCount) until the number of received and uncomsumed JMS messages exceeds the value of this property. At this point, the Client will 'pause' until the JMS messages are consumed and when the unconsumed JMS message count drops below this value, the Client once again notifys the Message Service and the flow of JMS messages to the Client is resumed.The default value for this property is
1000 -
imqOnMessageExceptionRedeliveryAttempts
For AUTO_ACKNOWLEDGE and DUPS_OK_ACKNOWLEDGE, maximum redelivery attempts (>= 1) when a jakarta.jms.MessageListener.onMessage() throws RuntimeException. The message will be sent to DMQ if this maximum atttempts (> 1) reached.This property is ignored if the MessageListener is Message Driven Bean
The default value for this property is
1.- See Also:
-
imqOnMessageExceptionRedeliveryIntervals
For AUTO_ACKNOWLEDGE and DUPS_OK_ACKNOWLEDGE, the interval in milliseconds for each subsequent redelivery attempt after first attempt when a jakarta.jms.MessageListener.onMessage() throws RuntimeException.This property is ignored if the MessageListener is Message Driven Bean
The default value for this property is
500milliseconds.- See Also:
-
imqQueueBrowserRetrieveTimeout
This property holds the the maximum time, in milliseconds, that a OpenMQ Client Application will wait before throwing a NoSuchElementException when retrieving elements from a QueueBrowser Enumeration.The default value for this property is
60000milliseconds.- See Also:
-
EnumerationEnumeration.nextElement()NoSuchElementExceptionjakarta.jms.QueueBrowser- Constant Field Values
-
imqQueueBrowserMaxMessagesPerRetrieve
This property holds the the maximum number of messages that will be retrieved at one time when a OpenMQ Client Application is enumerating through the messages on a Queue using a QueueBrowser.The default value for this property is
1000- See Also:
-
EnumerationEnumeration.nextElement()jakarta.jms.QueueBrowser- Constant Field Values
-
imqLoadMaxToServerSession
This property indicates how the OpenMQ ConnectionConsumer should load messages into a ServerSession's JMS Session.When set to
true, OpenMQ will load as many messages as are available, upto the limit of themaxMessagesparameter used when creating the ConnectionConsumer, using thecreateConnectionConsumer()API, into a ServerSession's JMS Session for processing.When set to
false, OpenMQ will only load a single message into a ServerSession's JMS Session for processing.The default value of this property is
true- See Also:
-
jakarta.jms.ConnectionConsumerQueueConnection.createConnectionConsumer(Queue, messageSelector, ServerSessionPool, maxMessages)TopicConnection.createConnectionConsumer(Topic, messageSelector, ServerSessionPool, maxMessages)TopicConnection.createDurableConnectionConsumer(Topic, subscriptionName, messageSelector, ServerSessionPool, maxMessages)- Constant Field Values
-
imqOverrideJMSDeliveryMode
This property indicates whether OpenMQ should override the JMS Message HeaderJMSDeliveryModewhich can be set using the JMS APIs.When this property is set to
trueOpenMQ will set the Message HeaderJMSDeliveryModeto the value of the propertyimqJMSDeliveryModefor all messages produced by the Connection created using this Administered Object. IfimqJMSDeliveryModehas an invalid value, then the default value of the JMS Message HeaderJMSDeliveryModewill be used instead. value.The default value of this property is
false- See Also:
-
imqJMSDeliveryModeMessageProducer.setDeliveryMode(deliveryMode)QueueSender.send(Message, deliveryMode, priority, timeToLive)QueueSender.send(Queue, Message, deliveryMode, priority, timeToLive)QueueSender.publish(Message, deliveryMode, priority, timeToLive)QueueSender.publish(Topic, Message, deliveryMode, priority, timeToLive)- Constant Field Values
-
imqJMSDeliveryMode
This property holds the administratively configured value of the JMS Message HeaderJMSDeliveryMode.When
imqOverrideJMSDeliveryModeis set totrue, all messages produced to non-Temporary Destinations by the Connection created using this Administered Object will have their JMS Message HeaderJMSDeliveryModeset to the value of this property.In addition, when
imqOverrideJMSHeadersToTemporaryDestinationsis set totrue, all messages produced to Temporary Destinations will also contain the overridenvalue of this JMS Message Header.Setting an invalid value on this property will result in the Message Header being set to the default value of
JMSDeliveryModeas defined by the JMS Specification.The default value of this property is
null- See Also:
-
imqOverrideJMSDeliveryModeJMSDeliveryMode_PERSISTENTJMSDeliveryMode_NON_PERSISTENTMessage.DEFAULT_DELIVERY_MODEDeliveryMode.PERSISTENTDeliveryMode.NON_PERSISTENTMessageProducer.setDeliveryMode(deliveryMode)QueueSender.send(Message, deliveryMode, priority, timeToLive)QueueSender.send(Queue, Message, deliveryMode, priority, timeToLive)QueueSender.publish(Message, deliveryMode, priority, timeToLive)QueueSender.publish(Topic, Message, deliveryMode, priority, timeToLive)- Constant Field Values
-
JMSDeliveryMode_PERSISTENT
This constant is used to set the value ofimqJMSDeliveryModeto PERSISTENT when the JMSDeliveryMode JMS Message Header is administratively configured. -
JMSDeliveryMode_NON_PERSISTENT
This constant is used to set the value ofimqJMSDeliveryModeto NON_PERSISTENT when the JMSDeliveryMode JMS Message Header is administratively configured. -
imqOverrideJMSExpiration
This property indicates whether OpenMQ should override the JMS Message HeaderJMSExpirationwhich can be set using the JMS APIs.When this property is set to
trueOpenMQ will set the Message HeaderJMSExpirationto the value of the propertyimqJMSExpirationfor all messages produced by the Connection created using this Administered Object. IfimqJMSExpirationhas an invalid value, then the default value of the JMS Message HeaderJMSExpirationwill be used instead. value.The default value of this property is
false- See Also:
-
imqJMSExpirationMessageProducer.setTimeToLive(timeToLive)QueueSender.send(Message, deliveryMode, priority, timeToLive)QueueSender.send(Queue, Message, deliveryMode, priority, timeToLive)QueueSender.publish(Message, deliveryMode, priority, timeToLive)QueueSender.publish(Topic, Message, deliveryMode, priority, timeToLive)- Constant Field Values
-
imqJMSExpiration
This property holds the administratively configured value of the JMS Message HeaderJMSExpiration.When
imqOverrideJMSExpirationis set totrue, all messages produced to non-Temporary Destinations by the Connection created using this Administered Object will have their JMS Message HeaderJMSExpirationset to the value of this property.In addition, when
imqOverrideJMSHeadersToTemporaryDestinationsis set totrue, all messages produced to Temporary Destinations will also contain the overridenvalue of this JMS Message Header.Setting an invalid value on this property will result in the Message Header being set to the default value of
JMSExpirationas defined by the JMS Specification.The JMS Specification defines
JMSExpirationas the time in milliseconds from its dispatch time that a produced message should be retained by the message service. An value of0indicates that the message is retained indefinitely. The default value ofJMSExpirationis0.The default value of this property is
null- See Also:
-
imqOverrideJMSExpirationMessage.DEFAULT_TIME_TO_LIVEMessageProducer.setTimeToLive(timeToLive)QueueSender.send(Message, deliveryMode, priority, timeToLive)QueueSender.send(Queue, Message, deliveryMode, priority, timeToLive)QueueSender.publish(Message, deliveryMode, priority, timeToLive)QueueSender.publish(Topic, Message, deliveryMode, priority, timeToLive)- Constant Field Values
-
imqOverrideJMSPriority
This property indicates whether OpenMQ should override the JMS Message HeaderJMSPrioritywhich can be set using the JMS APIs.When this property is set to
trueOpenMQ will set the Message HeaderJMSPriorityto the value of the propertyimqJMSPriorityfor all messages produced by all messages produced to non-Temporary Destinations by the Connection created using this Administered Object. IfimqJMSPriorityhas an invalid value, then the default value of the JMS Message HeaderJMSPrioritywill be used instead. value.The default value of this property is
false- See Also:
-
imqJMSPriorityMessageProducer.setPriority(priority)QueueSender.send(Message, deliveryMode, priority, timeToLive)QueueSender.send(Queue, Message, deliveryMode, priority, timeToLive)QueueSender.publish(Message, deliveryMode, priority, timeToLive)QueueSender.publish(Topic, Message, deliveryMode, priority, timeToLive)DeliveryMode.PERSISTENTDeliveryMode.NON_PERSISTENT- Constant Field Values
-
imqJMSPriority
This property holds the administratively configured value of the JMS Message HeaderJMSPriority.When
imqOverrideJMSPriorityis set totrue, all messages produced to non-Temporary Destinations by the Connection created using this Administered Object will have their JMS Message HeaderJMSPriorityset to the value of this property.In addition, when
imqOverrideJMSHeadersToTemporaryDestinationsis set totrue, all messages produced to Temporary Destinations will also contain the overridenvalue of this JMS Message Header.Setting an invalid value on this property will result in the Message Header being set to the default value of
JMSPriorityas defined by the JMS Specification.The JMS Specification defines a 10 level value for
JMSPriority, the priority with which produced messages are delivered by the message service, with 0 as the lowest and 9 as the highest. Clients should consider 0-4 as gradients of normal priority and 5-9 as gradients of expedited priority.JMSPriorityis set to 4, by default.The default value of this property is
null- See Also:
-
imqOverrideJMSPriorityMessage.DEFAULT_PRIORITYMessageProducer.setPriority(priority)QueueSender.send(Message, deliveryMode, priority, timeToLive)QueueSender.send(Queue, Message, deliveryMode, priority, timeToLive)QueueSender.publish(Message, deliveryMode, priority, timeToLive)QueueSender.publish(Topic, Message, deliveryMode, priority, timeToLive)- Constant Field Values
-
imqOverrideJMSHeadersToTemporaryDestinations
This property indicates whether OpenMQ should override the JMS Message Headers on Messages that are sent to Temporary Destinations.When
imqOverrideJMSHeadersToTemporaryDestinationsis set totrue, imq will override the JMS Message Headers listed below on Messages sent to Temporary Destinations providing the corresponding property enabling the JMS Message Header override on Messages sent to non-temporary Destinations is also set totrue.JMSPriorityJMSExpirationJMSDeliveryModeThe default value of this property is
false- See Also:
-
imqOverrideJMSDeliveryModeimqJMSDeliveryModeimqOverrideJMSExpirationimqJMSExpirationimqOverrideJMSPriorityimqJMSPriorityMessageProducer.setDeliveryMode(deliveryMode)MessageProducer.setTimeToLive(timeToLive)MessageProducer.setPriority(priority)QueueSender.send(Message, deliveryMode, priority, timeToLive)QueueSender.send(Queue, Message, deliveryMode, priority, timeToLive)QueueSender.publish(Message, deliveryMode, priority, timeToLive)QueueSender.publish(Topic, Message, deliveryMode, priority, timeToLive)DeliveryMode.PERSISTENTDeliveryMode.NON_PERSISTENT- Constant Field Values
-