Properties of XMS objects
This section documents the object properties defined by XMS.
The section contains
the following topics:
- Properties of Connection
- Properties of ConnectionFactory
- Properties of ConnectionMetaData
- Properties of Destination
- Properties of InitialContext
- Properties of Message
- Properties of MessageConsumer
- Properties of MessageProducer
- Properties of Session
This section also contains the Property definitions topic, which provides a definition of each property.
If an application defines its own properties of the objects described in this section, it does not cause an error, but it might cause unpredictable results.
Note: The property
names and values in this section are shown in the form
XMSC.NAME
, which is the form used for C and C++. However, in .NET, the form of the property name can be either
XMSC.NAME
or XMSC_NAME
,
depending on how you are using it:- If you are specifying a property, the property name must be in the form
XMSC.NAME
as shown in the following example:cf.SetStringProperty(XMSC.WMQ_CHANNEL, "DOTNET.SVRCONN");
- If you are specifying a string, the property name must be in the form
XMSC_NAME
as shown in the following example:
In .NET, property names and values are provided as constants in the XMSC class. These constants identify strings and would be used by any XMS .NET application. If you are using these predefined constants, the property names and values are in the form XMSC.NAME, so, for example, you would use XMSC.USERID, rather than XMSC_USERID.cf.SetStringProperty("XMSC_WMQ_CHANNEL", "DOTNET.SVRCONN");
The data types are also in the form used for C/C++. You can find the corresponding values for .NET inData types for .NET.