When an application creates a connection factory, there are a number
of properties that must be defined to create a connection to a messaging server.
The properties listed below are the minimum properties that an
application needs 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
managerXMS property
that must be set |
Equivalent WebSphere MQ JMS
property that must be set |
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 brokerXMS property
that must be set |
Equivalent WebSphere MQ JMS
property that must be set |
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. XMS works this out
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. |