The standard JMS message header fields are described in Table 2–4. Table 2–18 shows the methods provided by the JMS Message interface for retrieving the values of these fields: for instance, you can obtain a message’s reply destination with the statement
Destination replyDest = inMsg.getJMSReplyTo();Table 2–18 Message Header Retrieval Methods
| Name | Description | 
|---|---|
| Get message identifier | |
| Get destination | |
| Get reply destination | |
| Get correlation identifier as string | |
| Get correlation identifier as byte array | |
| Get delivery mode | |
| Get priority level | |
| Get time stamp | |
| Get expiration time | |
| Get message type | |
| Get redelivered flag |