首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

ActiveMQ支持的讯息属性

2013-01-09 
ActiveMQ支持的消息属性消息属性的说明:queue的消息默认是持久化的消息的优先级默认是4消息发送时设置了时

ActiveMQ支持的消息属性

消息属性的说明:queue的消息默认是持久化的消息的优先级默认是4消息发送时设置了时间戳消息的过期时间默认是永不过期,过期的消息进入DLQ,可以配置DLQ及其处理策略如果消息时重发的,将会标记出来JMSReplyTo标识响应消息发送到哪个queueJMSCorelationID标识此消息相关联的消息id,可以用这个标识把多个消息连接起来JMS同时也记录了消息重发的次数,默认是6次如果有一组关联的消息需要处理,可以分组:只需要设置消息组的名字和这个消息时第几个消息如果消息中一个事务环境,则TXID将被设置此外ActiveMQ在服务器端额外设置了消息入列和出列的时间戳其实还添加了一个属性JMSMimeType,值为jms/messageActiveMQ里消息属性的值,不仅可以用基本类型,还可以用List或Map类型(http://activemq.apache.org/structured-message-properties-and-mapmessages.html)

消息属性:Property Nametypedefault valuedescriptionJMSDestinationjavax.jms.Destinationset by the producerDestination used by the producerJMSReplyTojavax.jms.Destinationnulluser definedJMSTypeStringemptyuser definedJMSDeliveryModeintDeliveryMode.PERSISTENTindicator if messages should be persistedJMSPriorityint4value from 0-9JMSMessageIDStringuniqueunique identifier for the messageJMSTimestamplongtime the message was senttime in millisecondsJMSCorrelationIDStringnulluser definedJMSExpirationlong0time in milliseconds to expire the message - 0 means never expireJMSRedeliveredbooleanfalsetrue if the message is being resent to the consumer

JMS定义的属性:Property Nametypedefault valuedescriptionJMSXDeliveryCountint0number of attempts to send the messageJMSXGroupIDStringnullidentity of the message groupJMSXGroupSeqint0sequence number of the messageJMSXProducerTXIDStringnulltransaction identifier

ActiveMQ 额外定义的:Property Nametypedefault valuedescriptionJMSActiveMQBrokerInTimelong0消息到达broker的时间戳JMSActiveMQBrokerOutTimelong0消息离开broker的时间戳

热点排行