- 浏览: 180097 次
- 性别:
- 来自: 上海
文章分类
最新评论
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
<context:component-scan base-package="com.hnacard.cardsale" />
<context:annotation-config />
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>file:/haha/haha.properties</value>
<value>file:/haha.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
<bean id="destination" class="org.apache.activemq.command.ActiveMQQueue">
<constructor-arg index="0" value="${haha.haha.haha.queuename}" />
</bean>
<bean id="connectionFactory" class="org.apache.activemq.spring.ActiveMQConnectionFactory">
<property name="brokerURL" value="${brokerURL}" />
<property name="sendTimeout" value="1000" />
</bean>
<bean id="hahaConsumerListener" class="com.haha.consume.hahaConsumerListener">
<property name="asyncMsgService" ref ="asyncMsgService" />
</bean>
<bean id="jmsContainer"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destination" ref="destination" />
<property name="messageListener" ref="hahaConsumerListener" />
</bean>
</beans>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
<context:component-scan base-package="com.hnacard.cardsale" />
<context:annotation-config />
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>file:/haha/haha.properties</value>
<value>file:/haha.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
<bean id="destination" class="org.apache.activemq.command.ActiveMQQueue">
<constructor-arg index="0" value="${haha.haha.haha.queuename}" />
</bean>
<bean id="connectionFactory" class="org.apache.activemq.spring.ActiveMQConnectionFactory">
<property name="brokerURL" value="${brokerURL}" />
<property name="sendTimeout" value="1000" />
</bean>
<bean id="hahaConsumerListener" class="com.haha.consume.hahaConsumerListener">
<property name="asyncMsgService" ref ="asyncMsgService" />
</bean>
<bean id="jmsContainer"
class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destination" ref="destination" />
<property name="messageListener" ref="hahaConsumerListener" />
</bean>
</beans>
发表评论
文章已被作者锁定,不允许评论。
-
Tomcat的四种基于HTTP协议的Connector性能比较
2017-11-28 10:39 501今天在osc上看到对Tomcat的四种基于HTTP协议的Con ... -
Jetty项目简介
2016-11-07 11:28 417jetty是一个开源、基于标准、全功能实现的Java服务器。它 ... -
windows7 64位下git和tortoisegit的安装和使用
2016-09-08 11:35 1512git https://github.com/git-for- ... -
ActiveMQ的集群多种部署方式
2016-08-15 16:56 650ActiveMQ的多种部署方式 ... -
待查看
2016-08-02 09:41 3741tair 2 tddl 3hsf 4 分库分表 pmd ... -
redis 原理
2016-07-10 14:50 7981 什么是redis redis是一个key-value存储 ... -
mybatis 帮助文档
2016-04-22 11:01 438http://www.mybatis.org/mybatis- ... -
Zabbix 监控
2016-04-11 09:54 371 -
jvm实时监控工具
2016-04-09 09:35 423 -
redis学习(java调用方式)
2016-04-07 17:56 452【redis数据结构 – 简介 ... -
SonarQube代码质量管理平台安装与使用
2016-03-21 16:13 460代码质量管理工具 http://blog.csdn.net/h ... -
jboss web服务器
2016-03-17 14:15 361 -
cat监控
2016-03-16 15:22 433 -
activeMq分发策略,请求应答
2016-02-16 10:41 671 -
Eclipse下使用TODO的方法
2016-01-22 13:48 765下面是在Eclipse下使用TODO的方法。 ------- ... -
zookeeper
2015-12-07 20:29 403zookeeper -
Xshell会话共享实现多台服务器同步操作
2015-11-30 17:50 24471. 打开终端Xshell, 菜单栏View -> 勾 ... -
Tomcat出现 PermGen space解决方案
2015-06-10 16:06 306PermGen space的全称是Permanent Gene ... -
eclipse 代码注释项
2015-06-09 09:03 443comments files:新建文件时候的文件注释,在pac ... -
跨数据库事务研究
2015-05-12 11:16 838两种方案: 1、分布式 ...
相关推荐
Spring 集成 IBM MQ 监听配置,包括用户管理配置和一些基础配置信息
Spring集成ActiveMQ配置
springboot工程集成mq业务,配置及调用,便于理解,适合新手。
1) 本工程主要演示在SPRING BOOT工程中怎样使用JMS集成IBM-MQ及TLQ两种消息中间件产品 2) 使用SPRING BOOT Conditional机制实现了两种产品按需加载,工程会根据配置文件开关动态加载 3) 实现了普通队列消息发送与...
ActiveMQ spring 配置方案详解。
IBM MQ JMS Spring组件该存储库包含有助于向Spring开发人员提供IBM MQ JMS软件包的轻松配置的代码。 该库包含: 用于应用程序的mq-jms-spring-boot-starter安装及使用该软件包的编译版本可以从Maven Central自动下载...
本项目是基于 Spring Security + MQ + Redis 结合深度学习技术实现智能化评阅的阅卷平台。系统以智能评阅为核心,提供题组管理、任务分配、智能评分、个性评语、学情分析和知识延展等功能,实现评阅全流程智能化的...
在virtualHost:/ 下新增Exchanges: canal.exchange 新增队列:test.queue, 绑定canal.queue, RoutingKey:canal.routing.key canal下载及配置 https://github.com/alibaba/canal/releases/tag/canal-1.1.5 ...
- Spring Boot 集成 消息队列,包括 kafka、rabbitmq、activemq、rocketmq、redismq - springboot-auth - Spring Boot 权限认证,包括 Apache Shiro、Spring Security - springboot-cloud - Spring Cloud ...
本篇文章主要介绍了Spring Boot 配置多个RabbitMQ,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
##################################1、...1) 本工程演示了通过SPRING BOOT实现TLQ一站式配置功能 2) 一站式配置简化了配置TLQ的复杂度,降低TLQ配置出错概率。所有对象的创建及删除均一步完成,动态生效,无需重启;
基于这样的背景下,我开源了本示例项目,方便大家快速上手Spring Boot、Spring Cloud 。 每个示例都带有详细的介绍文档、作者在使用过程中踩过的坑、解决方案及参考资料,方便快速上手为你提供学习捷径,少绕弯路...
Spring Boot 是 Spring ...PART 4:Spring Boot 如何集成 MQ、缓存、NoSQL 等中间件; PART 5:综合实践。 认真学完这个课程后,将会对 Spring Boot 有进一步的了解,具备使用 Spring Boot 上手进行开发的基本能力。
springcloud-connect:数据连接中心,包含DB、Redis、MQ、Mail等组件的配置入口,只需其他模块在pom中添加依赖并提供相关配置即可快速接入。 springcloud-producer:服务提供者,包含具体的业务逻辑实现等。 spring...
基于Spring cloud Alibaba,Oauth2,基于VUE的后台权限管理框架,集成了基于MQ的可靠消息的分布式事务解决方案。 感兴趣可以加QQ群:591363691 目前项目已经部署到k8s集群上,暂时只部署了3个微服务,由于怕有人乱删除...
以前的做法是在spring-boot的基础上通过新建配置类来实现多数据源的操作,而且在事务操作上不是很友好,并且如果多个项目都使用到的话,每个项目都得写一套,很繁琐,因此自己做成一个可以快速集成多数据源的工具。...
一 服务启动 此项目集成了:Feign,Spring Cloud Bus,hystrix,swagger-ui,zuul-filter,配置中心功能 1)安装rabbitMQ 2)启动cloud—eureka :此时可访问 localhost:8761 3)启动 cloud-config 此处为配置中心 ...
RuoYi是一个基于Java技术开发的后台管理系统,基于技术组合(SpringBoot+Vue),内置模块有:部门管理、角色用户、菜单即按钮授权、数据权限、系统参数、日志管理、代码生成、表单构建等。支持多数据源、支持分布式...
Windowss 下 Spring + ActiveMq + maven 集成配置分为两章,环境搭建之前参考了网上的博客以及同事的配置。