Sets the message type.

Some JMS providers use a message repository that contains the definitions of messages sent by applications. The JMSType header field may reference a message's definition in the provider's repository.

The JMS API does not define a standard message definition repository, nor does it define a naming policy for the definitions it contains.

Some messaging systems require that a message type definition for each application message be created and that each message specify its type. In order to work with such JMS providers, JMS clients should assign a value to JMSType, whether the application makes use of it or not. This ensures that the field is properly set for those providers that require it.

To ensure portability, JMS clients should use symbolic values for JMSType that can be configured at installation time to the values defined in the current provider's message repository. If string literals are used, they may not be valid type names for some JMS providers.

Gets the message type identifier supplied by the client when the message was sent.

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Property JMSType As String
	Get
	Set
C#
string JMSType { get; set; }
Visual C++
property String^ JMSType {
	String^ get ();
	void set (String^ value);
}

Return Value

the message type

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to set the message type due to some internal error.
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to get the message type due to some internal error.

See Also

IMessage..::..JMSType
IMessage..::..JMSType