Activemq message features: Message attributes

Source: Internet
Author: User
Tags time in milliseconds
Message attributes:
  • By default, messages in queue are persistent.
  • The default priority of a message is 4.
  • The timestamp is set when the message is sent.
  • By default, a message never expires. If an expired message enters dlq, you can configure dlq and its processing policy.
  • If the message is resending, it will be marked
  • Jmsreplyto identifies the queue to which the response message is sent
  • Jmscorelationid identifies the Message ID associated with the message. You can use this ID to connect multiple messages.
  • JMS also records the number of message resends. The default value is 6.
  • If there is a group of associated messages to be processed, You can group: you only need to set the name of the message group and the number of messages when the message is sent.
  • If a transaction environment is in the message, txid is set
  • In addition, activemq additionally sets the timestamp of message columns and columns on the server.
  • In fact, a property jmsmimetype is added with the value of JMS/message.
  • The value of the message attribute in activemq, not only the basic type, but also the list or map type (http://activemq.apache.org/structured-message-properties-and-mapmessages.html)
Message attributes:
Property name Type Default Value Description
Jmsdestination Javax. JMS. Destination Set by the producer Destination used by the producer
Jmsreplyto Javax. JMS. Destination Null User Defined
Jmstype String Empty User Defined
Jmsdeliverymode Int Deliverymode. Persistent Indicator if messages shoshould be persisted
Jmspriority Int 4 Value from 0-9
Jmsmessageid String Unique Unique identifier for the message
Jmstimestamp Long Time the message was sent Time in milliseconds
Jmscorrelationid String Null User Defined
Jmsexpiration Long 0 Time in milliseconds to expire the message-0 means never expire
Jmsredelivered Boolean False True if the message is being resent to the consumer
Attributes defined by JMS:
Property name Type Default Value Description
Jmsxdeliverycount Int 0 Number of attempts to send the message
Jmsxgroupid String Null Identity of the message group
Jmsxgroupseq Int 0 Sequence Number of the message
Jmsxproducertxid String Null Transaction identifier
Additional definitions of activemq:
Property name Type Default Value Description
Jmsactivemqbrokerintime Long 0 Timestamp of message arrival Broker
Jmsactivemqbrokerouttime Long 0 Timestamp of message exit Broker

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.