What is a message property?

Jerry Smith

Message producers can attach arbitrary properties to outgoing messages. This data is stored in the message header, in essence, as virtual fields in the header. JMS reserves the "JMSX." property name prefix for JMS-defined properties.

Producer-defined properties are set with Message.setXXXProperty() and retrieved with Message.getXXXProperty(), where "XXX" can be Boolean, Byte, and so on. There are many property-related methods; see the JMS vendor's documentation, as well as the JMS API documentation, in particular, the description for Message, for complete property handling information.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact