摘要:
在实际的项目中如果使用原生的ActiveMQ API开发会比较麻烦,因为需要创建连接工厂,创建连接等,我们应该使用一个模板来做这些繁琐的事情,Spring帮我们做了! Spring提供了对JMS的支持,需要添加Spring支持jms的包,如下: 在spring-amq.xml中配置JmsTempla 阅读全文
摘要:
# 日志输出级别(INFO)和输出位置(stdout,R)log4j.rootLogger=INFO, stdout # 日志输出位置为控制台log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.lay 阅读全文
摘要:
在测试类的上方加入以下注解 @RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration("classpath:spring.xml")public class Test01 { @Autowired private AmqSenderSe 阅读全文