Q1: | What type of JMS message domain should be used to send a message to a single receiver? |
A1: | A point-to-point domain is the appropriate choice in this scenario. |
Q2: | What type of JMS message domain should be used to send a message to many receivers at the same time? |
A2: | To send to many receivers, the publish/subscribe message domain is the best choice. |
Q3: | What is the difference between JMSHeader fields and JMSProperty fields? |
A3: | JMS header fields are defined in the JMS API and are mainly set by the JMS provider. JMS property fields are used by clients to add additional header information to a message. |
Q4: | Does JMS guarantee to deliver a message in the point-to-point domain? |
A4: | Messages in the point-to-point domain are PERSISTENT by default and will be delivered unless they have a timeout that has expired. Point-to-point messages can be set to NON_PERSISTENT, in which case, the message may be lost if a provider fails. |
Q5: | When should I use a durable subscription? |
A5: | Durable subscriptions should be used when a subscriber needs to receive messages from a topic when it is inactive. |
18.226.34.25