• JMS两种消息模型(点对点,发布订阅)的注意细节


    今天查看JMS API tutorial ,把关于JMS messageing domains 的一些注意细节整理如下:

    一、Point-to-Point Messaging Domain

    1、Queues retain all messages sent to them until the messages are consumed or until the messages expire.

    2、Each message has only one consumer.

    3、 A sender and a receiver of a message have no timing dependencies. The receiver can fetch the message whether or not it was running when the client sent the message.

    4、The receiver acknowledges the successful processing of a message.

    二、Publish/Subscribe Messaging Domain

    1、Topics retain messages only as long as it takes to distribute them to current subscribers.

    2、Each message may have multiple consumers.

    3、 Publishers and subscribers have a timing dependency. A client that subscribes to a topic can consume only messages published after the client has created a subscription, and the subscriber must continue to be active in order for it to consume messages.

    4、Durable subscriptions can receive messages sent while the subscribers are not active.

    5、Use pub/sub messaging when each message can be processed by zero, one, ormany consumers.

  • 相关阅读:
    转: adroid音视延迟 10ms的原因与解答
    去应聘软件工程师记得这样介绍自己
    U盘中了磁碟机病毒怎么办
    Heartbeats
    视频格式研究
    开源镜像站汇总
    Linux各目录缩写含义
    虚拟中没有eth0
    使用#锚点时,jsp中不能有basePath
    android systemUI--Notification 整理
  • 原文地址:https://www.cnblogs.com/orientsun/p/2609873.html
Copyright © 2020-2023  润新知