Message identifiers are reserved for installing the messaging system. You can read it and, for example, a magazine or even save it, but nothing more. Esp., It should not be installed by the application! The installer exists only when it is connected between two messaging systems, that is, when you receive a message from one messaging system X and forward it to another messaging system Y. Then Y should be able to set the message identifier of this message object, even though Y did not create it, i.e. although this is not Y own implementation. There are several methods for this use case, and this causes a lot of confusion; it’s best to ignore them.
OTOH, . -, :
- A D , D ', A . , A
send, A . - B , - D '. . , .
- , A D ', , 1.
, --- , ; - . JavaDoc. . . - .
: , , JMS-API .