
客户端:
xml配置,这里用到了两台 服务器,connectionFactory便可以看出,因为传的是对象,用到了转换器
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 http://www.springframework.org/schema/beans"
4
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
5
xmlns:context=" http://www.springframework.org/schema/context"
6
xsi:schemaLocation=" http://www.springframework.org/schema/beans
7
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
8
http://www.springframework.org/schema/context
9
http://www.springframework.org/schema/context/spring-context-2.5.xsd">10 11 12
<!-- 配置JMS连接工厂 -->13 14 <!--
-->15 <!--
-->16 <!--
-->17 18
19
20
21
22
tcp://localhost:6161623
24
25
true26
27
28
29
30 31 32
33
34
35
36
tcp://192.168.130.13:6161637
38
39
true40
41
42
43
44 45
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27216498/viewspace-739162/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/27216498/viewspace-739162/