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来处理来自目的端的消息。

  • 相关阅读:
    Sonar+IDEA + Maven的集成
    My97DatePicker IE9中,显示全部为1
    Datatable+jeditable+Java 结合使用实现表格的单行刷新
    Datatables表格控件的使用相关网站及遇到的问题
    xss 小练习
    主页面布局 随浏览器大小变化而变化
    使用angular中自定义的directive实现删除确认框
    使用css和js完成模态弹窗功能
    ckplayer插件的使用
    使用JQuery进行表格分页查询
  • 原文地址:https://www.cnblogs.com/aomi/p/3129835.html
Copyright © 2011-2022 走看看