The IBM WebSphere MQ classes for Java configuration file
An IBM® WebSphere® MQ classes for Java configuration file specifies properties that are used to configure the IBM WebSphere MQ classes for Java.
The format of an IBM WebSphere MQ classes for Java configuration file is that of a standard Java properties file.
java -Dcom.ibm.msg.client.config.location=config_file_url application_name
In the command, config_file_url is a uniform resource locator (URL) that
specifies the name and location of the IBM WebSphere MQ classes for Java configuration file. URLs of the following types are supported: http,
file, ftp, and jar.
java -Dcom.ibm.msg.client.config.location=file:/D:/mydir/mqjava.config MyAppClass
This command identifies the IBM WebSphere MQ classes for Java
configuration file as the file D:\mydir\mqjava.config on the local Windows system. An IBM WebSphere MQ classes for Java configuration file can be used with any of the supported transports between an application and a queue manager or broker.
Overriding properties specified in an IBM WebSphere MQ classes for Java configuration file
An IBM WebSphere MQ MQI client configuration file can also specify properties that are used to configure IBM WebSphere MQ classes for Java. However, properties that are specified in an IBM WebSphere MQ MQI client configuration file apply only when an application connects to a queue manager in client mode.
com.ibm.mq.cfg.stanza.propName=propValue
The variables in the entry have the following meanings:- stanza
- The name of the stanza in the IBM WebSphere MQ MQI client configuration file that contains the attribute.
- propName
- The name of the attribute as specified in the IBM WebSphere MQ MQI client configuration file.
- propValue
- The value of the property that overrides the value of the attribute that is specified in the IBM WebSphere MQ MQI client configuration file.
Alternatively, you can override an attribute in an IBM WebSphere MQ MQI client configuration file by specifying the property as a system property on the java command. Use the preceding format to specify the property as a system property.
ChannelDefinitionFile
and ChannelDefinitionDirectory
in the CHANNELS stanza of the client configuration
file are not used. See Using a client channel definition table with IBM WebSphere MQ classes for Java for details of how to use the CCDT with
the IBM WebSphere MQ classes for Java.
Stanza | Attribute |
---|---|
ClientExitPath stanza of the client configuration file | ExitsDefaultPath |
ClientExitPath stanza of the client configuration file | ExitsDefaultPath64 |
ClientExitPath stanza of the client configuration file | JavaExitsClasspath |
MessageBuffer stanza of the client configuration file | MaximumSize |
MessageBuffer stanza of the client configuration file | PurgeTime |
MessageBuffer stanza of the client configuration file | UpdatePercentage |
TCP stanza of the client configuration file | ClntRcvBufSize |
TCP stanza of the client configuration file | ClntSndBufSize |
TCP stanza of the client configuration file | Connect_Timeout |
TCP stanza of the client configuration file | KeepAlive |