When an application creates a connection factory, a number of properties
must be defined to create a connection to a messaging server.
The properties listed in the following tables are the minimum
required for an application to set to create a connection to a messaging server.
If you want to customize the way that a connection is created, then your application
can set any additional properties of the ConnectionFactory object as necessary.
For further information, and a complete list of available properties, see Properties of ConnectionFactory.
Connection to a WebSphere MQ queue
manager
Table 1. Property settings for administered ConnectionFactory
objects for connections to a WebSphere MQ queue
managerRequired XMS |
Equivalent WebSphere MQ JMS
property required |
XMSC_CONNECTION_TYPE |
XMS works
this out from the connection factory class name and TRANSPORT (TRAN) property. |
XMSC_WMQ_HOST_NAME |
HOSTNAME (HOST) |
XMSC_WMQ_PORT |
PORT |
Real-time connection to a broker
Table 2. Property
settings for administered ConnectionFactory objects for real-time connections
to a brokerRequired XMS |
Equivalent WebSphere MQ JMS
property required |
XMSC_CONNECTION_TYPE |
XMS works
this out from the connection factory class name and TRANSPORT (TRAN) property. |
XMSC_RTT_HOST_NAME |
HOSTNAME (HOST) |
XMSC_RTT_PORT |
PORT |
Connection to a WebSphere service integration bus
Table 3. Property settings for administered ConnectionFactory objects for connections
to a WebSphere service integration busXMS property |
Description |
XMSC_CONNECTION_TYPE |
The type of messaging server
to which an application connects..
This is determined from the connection factory class name. |
XMSC_WPM_BUS_NAME |
For a connection factory, the
name of the service integration bus that the application connects to or, for
a destination, the name of the service integration bus in which the destination
exists. |