CXF使用JMS作为传输协议的配置
来源:互联网 发布:景安备案域名 编辑:程序博客网 时间:2024/06/05 17:09
<
beans
xmlns
=
"http://www.springframework.org/schema/beans"
xmlns:xsi
=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:p
=
"http://www.springframework.org/schema/p"
xmlns:jaxws
=
"http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<
import
resource
=
"classpath:META-INF/cxf/cxf.xml"
/>
<
import
resource
=
"classpath:META-INF/cxf/cxf-extension-soap.xml"
/>
<
import
resource
=
"classpath:META-INF/cxf/cxf-extension-jms.xml"
/>
<
jaxws:endpoint
xmlns:customer
=
"http://customerservice.service.test/"
id
=
"CustomerService"
address
=
"jms://localhost:61616"
serviceName
=
"customer:CustomerServiceService"
endpointName
=
"customer:CustomerServiceEndpoint"
implementor
=
"test.service.impl.CustomerServiceImpl"
>
<
jaxws:features
>
<
bean
class
=
"org.apache.cxf.transport.jms.JMSConfigFeature"
p:jmsConfig-ref
=
"jmsConfig"
/>
</
jaxws:features
>
</
jaxws:endpoint
>
<
bean
id
=
"jmsConfig"
class
=
"org.apache.cxf.transport.jms.JMSConfiguration"
p:connectionFactory-ref
=
"jmsConnectionFactory"
p:targetDestination
=
"test.cxf.jmstransport.queue"
/>
<
bean
id
=
"jmsConnectionFactory"
class
=
"org.springframework.jms.connection.SingleConnectionFactory"
>
<
property
name
=
"targetConnectionFactory"
>
<
bean
class
=
"org.apache.activemq.ActiveMQConnectionFactory"
>
<
property
name
=
"brokerURL"
value
=
"tcp://localhost:61616"
/>
</
bean
>
</
property
>
</
bean
>
</
beans
>
客户端配置:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<
beans
xmlns
=
"http://www.springframework.org/schema/beans"
xmlns:xsi
=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:p
=
"http://www.springframework.org/schema/p"
xmlns:jaxws
=
"http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<
import
resource
=
"classpath:META-INF/cxf/cxf.xml"
/>
<
import
resource
=
"classpath:META-INF/cxf/cxf-extension-soap.xml"
/>
<
import
resource
=
"classpath:META-INF/cxf/cxf-extension-jms.xml"
/>
<
jaxws:client
id
=
"CustomerService"
xmlns:customer
=
"http://customerservice.service.test/"
serviceName
=
"customer:CustomerServiceService"
endpointName
=
"customer:CustomerServiceEndpoint"
address
=
"jms://localhost:61616"
serviceClass
=
"test.service.CustomerService"
>
<
jaxws:features
>
<
bean
xmlns
=
"http://www.springframework.org/schema/beans"
class
=
"org.apache.cxf.transport.jms.JMSConfigFeature"
p:jmsConfig-ref
=
"jmsConfig"
/>
</
jaxws:features
>
</
jaxws:client
>
<
bean
id
=
"jmsConfig"
class
=
"org.apache.cxf.transport.jms.JMSConfiguration"
p:connectionFactory-ref
=
"jmsConnectionFactory"
p:targetDestination
=
"test.cxf.jmstransport.queue"
/>
<
bean
id
=
"jmsConnectionFactory"
class
=
"org.springframework.jms.connection.SingleConnectionFactory"
>
<
property
name
=
"targetConnectionFactory"
>
<
bean
class
=
"org.apache.activemq.ActiveMQConnectionFactory"
>
<
property
name
=
"brokerURL"
value
=
"tcp://localhost:61616"
/>
</
bean
>
</
property
>
</
bean
>
</
beans
>
- CXF使用JMS作为传输协议的配置
- CXF使用JMS作为传输协议的配置
- JMS学习八(ActiveMQ支持的传输协议)
- 使用OkHttp作为Volley的传输
- 流媒体使用的传输协议
- 配置Filezilla使用ftps协议加密传输
- 使用 JMS 技术作为数据复制的解决方案
- cxf+jms
- CXF的Spring注解配置及使用
- CXF的Spring注解配置及使用
- jboss6 jms 配置使用
- TCP传输协议使用
- activeMQ,spring的jms异步传输
- Modem的传输协议
- 流媒体的传输协议
- 流媒体的传输协议
- CXF JMS Transport
- 使用ByteArray实现数据的传输,以及协议的分解.
- 常量空间遍历二叉树
- perl笔记-----switch
- Object-C 里的几个不寻常的retainCount
- ORACLE调度(schedule)详解
- LDA(Linear Discriminant Analysis)算法推导和计算方法
- CXF使用JMS作为传输协议的配置
- #侘寂#侘寂
- 典型电路-----DRAM
- myeclipse tomcat启动,内存溢出问题
- 转android gralloc流程分析for msm8960
- 关于SVM的简单理解
- 典型电路------serdes
- 堆栈限制
- 典型电路-------状态机相关