WebSphere Message Service Clients for C/C++ and .NET, Version 1.2 Operating Systems: Linux, Windows

Required connection factory properties

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 manager
XMS 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 broker
XMS 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 bus
XMS 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.
Related concepts
Supported types of administered object repository
Property mapping for administered objects
InitialContext properties
URI format for XMS initial contexts
JNDI Lookup web service
Retrieval of administered objects
Related tasks
Creating administered objects
Creating an InitialContext
Related reference
Required destination properties

Reference topic

Terms of Use | Rate this page

Last updated: 7 Dec 2005

© Copyright IBM Corporation 2005. All Rights Reserved.