What is JMSType used for?

What is JMSType used for? Can it be used to determine message payload? For example, a payload might be related to adding a product, and JMSType might be AddProduct.

+6
source share
1 answer

The JMS specification says: β€œThe JMSType header JMSType contains the message type identifier provided by the client when sending the message. Some JMS providers use a message repository that contains the definitions of messages sent by applications. The type header field can refer to message definitions in the providers repository. JMS does not define a standard The message definition repository does not define a naming policy for the definitions it contains.

In fact, you can set JMSType to the value of your choice, but you are asked to make sure that every application running on your JMS provider uses the same values ​​for JMSType .

+6
source

Source: https://habr.com/ru/post/974573/


All Articles