zoukankan      html  css  js  c++  java
  • activemq in action(2)

    针对message,JMS定义了很多不同的概念:

    JMS Client - An application written using 100% pure Java to send and receive messages.

                     100%用java写的程序,用来发送和接受message;


    • Non-JMS Client - An application is written using the JMS provider's native client API to send and receive messages instead of JMS.

      调用JMS provider的原生客户段api,用来发送和接受消息,而不是通过JMS。


    • JMS Producer - A client application that creates and sends JMS messages.

                             用来创建和发送JMS 消息的客户端程序


    • JMS Consumer - A client application that receives and processes JMS messages.

                       用来接受和处理JMS消息的客户端程序。


    • JMS Provider - The implementation of the JMS interfaces which is ideally written in 100% pure Java.

    • JMS Message - The most fundamental concept of JMS; sent and received by JMS clients.

    • JMS Domains - The two styles of messaging that include point-to-point and publish/subscribe.
    • Administered Objects - Preconfigured JMS objects that contain provider-specific configuration data for use by clients. These objects are typically accessible by clients via JNDI.
    • Connection Factory - Clients use a connection factory to create  connections to the JMS provider.
    • Destination - An object to which messages are addressed and sent and from which messages are received.

    JMS定义了两种客户端:JMS客户端和非JMS客户端。

    JMS客户端利用JMS API和JMS PROVIDER(比如activemq)进行交互,就想使用JDBC API访问数据库一样。

    JMS客户端使用JMS API使对message服务的访问更加的标准化。

    JMS producer:

     JMS客户端使用JMS的MessageProducer类来传送信息到目的地,一般来说,当使用Session.createProducer()来创建producer时,缺省设定目的地。

     MessageProducer这个接口定义的东西特别多:

    JMS Consumer:

    JMS客户端使用MessageConsumer来处理来自目的端的消息。

  • 相关阅读:
    基础语法;
    layabox里面的ui组件之RadioGroup
    github删除带有文件的文件夹
    【转】NHibernate:no persister for 异常
    MVC乱码可能的原因
    【转】局域网内访问VS2012 调试的IIS Express web服务器
    Hightchart y轴不允许显示小数
    WCF 断点不会命中
    Web Form 取消手机端自动转换
    Sharepoint的javascript客户端对象模型获取其他站点的list
  • 原文地址:https://www.cnblogs.com/aomi/p/3129835.html
Copyright © 2011-2022 走看看