当前位置:七道奇文章资讯编程技术Java编程
日期:2011-03-22 16:13:00  来源:本站整理

关于weblogic中jms message的情况[Java编程]

赞助商链接



  本文“关于weblogic中jms message的情况[Java编程]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:

本日同事问我说,若何处理RECEIVE、VISIBLE的JMS消息?有点懵,之前从没有关注过消息的状况.Weblogic81中,我们是不能看到 destination中的消息的,只能看到当前destination中,有多少message, 有多少pending的message.而92中,我们监控destination的时刻,可以看到具体的message,并且message背面会跟一个state string.标题中说的RECEIVE、VISIBLE就是这个state string,其实state有很多,常见的也就是RECEIVE、VISIBLE.下面我们看看全部这些STATE在代码(MessageInfo.java)中的注释,

VISIBLE:Indicates that the message is visible on the destination.消息已经入列,等候被消费.

ORDERED:Indicates that the message belongs to a Unit of Order. 消息处于某个unit中.

DELAYED:Indicates that the message exists on the destination but is classified as pending because it has a scheduled delivery time or is delayed. 消息已经入列,但因为TimeToDeliver还没有到,直到TimeToDeliver,该消息才会变成VISIBLE.大概由于客户端消费非常,比方onMessage中呈现了RuntimeException,消息被recover后,等候Redelivery Delay时间到达,然后重新发送.

RECEIVE:Indicates that the message exists on the destination but is classified as pending because it has been received but not acknowledged. The actual state may also include STATE_TRANSACTION if the receive operation was performed as part of a transaction.消息已经入列,且已经被DELIVER到某个CONSUMER,但CONSUMER的ACKNOWLEDGE还没有收到.大概是网络问题或客户端设为CLIENT_ACK情势.

SEND:Indicates that the message exists on the destination but is classified as pending because it is part of a send operation that is in progress. The actual state may also include STATE_TRANSACTION if the send operation was perfromed as part of a transaction.消息已经入列,但目前send操作正在处理中(比方事件未提交),该消息关于consumer是不可用的.

TRANSACTION:Indicates that the message exists on the destination but is classified as pending because it is part of a send or receive operation that is being performed as part of a global transaction.

PAUSED:Indicates that the message exists on the destination but is being held in a pending state because of a pause operation. 消息因为PAUSE被PENDING在DEST中.

REDELIVERY_COUNT_EXCEEDED:Indicates that the message has exceeded the redelivery count set for the destination and is no longer available for consumption. 消息反复REDELIVERY的上限已经到达,这样的消息不会被重发.

按照消息的状况,我们基本可以断定JMS消息相关问题的位置,从而调查可以做到有的放矢.


  以上是“关于weblogic中jms message的情况[Java编程]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
  • 关于weblogic中操纵Dom4j、Xerces招致实施线程挂起的问题
  • 关于weblogic中jms message的情况
  • 关于Weblogic Server重启或log rotation招致server.log的i node
  • 关于Weblogic中XAER_NOTA XAException的两种注释
  • 关于weblogic中操纵prepared statement cache后操作DDL的问题
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .