`

7.4 使用Spring编写JMS客户端

 
阅读更多

博客已搬家, 更好阅读体验,猛戳 http://www.jack-yin.com/english/translation/activemq-in-action/1568.html

 

7.4 Writing JMS clients using Spring

7.4 使用Spring编写JMS客户端

 

ActiveMQ uses the Spring Framework to ease the various aspects of client-to-broker

communication, but the Spring Framework goes much further, with its API and container

designed specifically for JMS messaging. Together, ActiveMQ and Spring make

an excellent JMS development platform, making many common tasks extremely easy

to accomplish. Some of the tasks to be covered in this section include

 

ActiveMQ使用Spring框架来屏蔽客户端和代理之间通信的各种细节,但是Spring框架做的更好,Spring使用其

API和专为ActiveMQ进行特殊设计的JMS消息系统.ActiveMQ和Spring创造了卓越的JMS开发平台,可以轻松完成

大多数的普通任务.本章节中包含的JMS开发内容包括:

 

Configuring JMS connections—ActiveMQ provides classes that can be used to

configure URLs and other parameters of connections to brokers. The connection

factory could later be used by your application to get the appropriate

connection.

配置JMS连接 -- ActiveMQ提供了可以用来配置代理的RUL以及其他参数的类.而后你在程序中使用JMS的

连接工厂可以使用配种的适当的连接URL和其他连接参数来获取JMS连接.

 

Configuring JMS destinations—ActiveMQ destination objects can be configured

simply as beans representing JMS destinations used by your producers and

consumers.

配置JMS消息目的地 -- 可以配置一个普通的bean来代表JMS消息目的地, 以供消息生产者和消费者使用.

 

Defining JMS consumers—Spring provides helper classes that allow you to easily

configure a message listener container and hook message listeners to it.

定义JMS消息消费者--Spring提供的辅助类,允许您轻松地配置消息侦听容器和设置消息监听器钩子.

 

Implementing JMS producers—Spring also provides helper bean classes for creating

new producers.

实现JMS生产者 -- Spring通样也提供了辅助的bean用来创建新的消息生产者.

 

In the following sections, these tasks will be demonstrated and the portfolio application

will be changed to use all benefits of the ActiveMQ and Spring integration.

接下来的章节将介绍上文所述的任务,portfolio实例也会被修改以便利用ActiveMQ与Spring结合后的各种

好处.

 

7.4.1 Configuring JMS connections

7.4.1 配置JMS连接

 

....................

分享到:
评论

相关推荐

    Spring in Action(第二版 中文高清版).part2

    10.2 协同使用JMS和Spring 10.2.1 处理冗长失控的JMS代码 10.2.2 使用JMS模板 10.2.3 转换消息 10.2.4 将Spring的网关支持类应用于JMS 10.3 创建消息驱动POJO 10.3.1 创建消息监听器 10.3.2 编写纯POJO MDP ...

    Spring in Action(第二版 中文高清版).part1

    10.2 协同使用JMS和Spring 10.2.1 处理冗长失控的JMS代码 10.2.2 使用JMS模板 10.2.3 转换消息 10.2.4 将Spring的网关支持类应用于JMS 10.3 创建消息驱动POJO 10.3.1 创建消息监听器 10.3.2 编写纯POJO MDP ...

    Spring in Action(第2版)中文版

    10.2协同使用jms和spring 10.2.1处理冗长失控的jms代码 10.2.2使用jms模板 10.2.3转换消息 10.2.4将spring的网关支持类应用于jms 10.3创建消息驱动pojo 10.3.1创建消息监听器 10.3.2编写纯pojomdp 10.4使用...

    搞定J2EE:STRUTS+SPRING+HIBERNATE整合详解与典型案例 (1)

    12.6.16 编写Spring和Hibernate的配置文件spring-config.xml 12.6.17 编写web.xml 12.6.18 验证示例 12.7 小结 第四篇 J2EE项目案例精选 第十三章 网上调查系统 13.1 系统概述 13.2 需求分析 13.2.1 系统用例图 ...

    Spring 2.0 开发参考手册

    19.2. 使用Spring JMS 19.2.1. JmsTemplate 19.2.2. 连接工厂 19.2.3. (消息)目的地管理 19.2.4. 消息侦听容器 19.2.5. 事务管理 19.3. 发送一条消息 19.3.1. 使用消息转换器 19.3.2. SessionCallback 和...

    Spring-Reference_zh_CN(Spring中文参考手册)

    7.4. Spring里的advisor(Advisor) API 7.5. 使用ProxyFactoryBean创建AOP代理 7.5.1. 基础 7.5.2. JavaBean属性 7.5.3. 基于JDK和CGLIB的代理 7.5.4. 对接口进行代理 7.5.5. 对类进行代理 7.5.6. 使用“全局”...

    Spring中文帮助文档

    7.4. Spring里的Advisor API 7.5. 使用ProxyFactoryBean创建AOP代理 7.5.1. 基础 7.5.2. JavaBean属性 7.5.3. 基于JDK和CGLIB的代理 7.5.4. 对接口进行代理 7.5.5. 对类进行代理 7.5.6. 使用“全局”通知器 ...

    Spring API

    7.4. Spring里的Advisor API 7.5. 使用ProxyFactoryBean创建AOP代理 7.5.1. 基础 7.5.2. JavaBean属性 7.5.3. 基于JDK和CGLIB的代理 7.5.4. 对接口进行代理 7.5.5. 对类进行代理 7.5.6. 使用“全局”通知器 ...

    搞定J2EE:STRUTS+SPRING+HIBERNATE整合详解与典型案例 (3)

    12.6.16 编写Spring和Hibernate的配置文件spring-config.xml 12.6.17 编写web.xml 12.6.18 验证示例 12.7 小结 第四篇 J2EE项目案例精选 第十三章 网上调查系统 13.1 系统概述 13.2 需求分析 13.2.1 系统用例图 ...

    spring chm文档

    Spring Framework 开发参考手册 Rod Johnson Juergen Hoeller Alef Arendsen Colin Sampaleanu Rob Harrop Thomas Risberg Darren Davison Dmitriy Kopylenko Mark Pollack ...19.2. 使用Spring JMS ...

    搞定J2EE:STRUTS+SPRING+HIBERNATE整合详解与典型案例 (2)

    12.6.16 编写Spring和Hibernate的配置文件spring-config.xml 12.6.17 编写web.xml 12.6.18 验证示例 12.7 小结 第四篇 J2EE项目案例精选 第十三章 网上调查系统 13.1 系统概述 13.2 需求分析 13.2.1 系统用例图 ...

    《程序天下:J2EE整合详解与典型案例》光盘源码

    12.6.16 编写Spring和Hibernate的配置文件spring-config.xml 12.6.17 编写web.xml 12.6.18 验证示例 12.7 小结 第四篇 J2EE项目案例精选 第十三章 网上调查系统 13.1 系统概述 13.2 需求分析 13.2.1 系统用例图 ...

    JBoss Seam 工作原理、seam和hibernate的范例、RESTFul的seam、seam-gen起步、seam组件、配置组件、jsf,jboss、标签、PDF、注解等等

    Seam - 语境相关的组件[满江红20071230]............................................................................................................................ 1 Java EE 框架...........................

Global site tag (gtag.js) - Google Analytics