setJMSType

 

public void setJMSType(String type) throws JMSException;

Sets the message type.

Some JMS providers use a message repository that contains the definition of messages sent by applications. The type header field contains the name of a message's definition.

JMS does not define a standard message definition repository nor does it define a naming policy for the definitions it contains. JMS clients should use symbolic values for types that can be configured at installation time which correspond to the values defined in the current provider's message repository.

JMS clients should assign a value whether the application makes use of it or not. This insures that it is properly set for those providers that require it.

Parameters

  • type - the class of message

Exceptions

  • JMSException - with reason MQJMS_EXCEPTION_BAD_VALUE.


uj26820_