xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.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
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"
</
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
|
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.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"
serviceName
=
"customer:CustomerServiceService"
endpointName
=
"customer:CustomerServiceEndpoint"
serviceClass
=
"test.service.CustomerService"
>
<
jaxws:features
>
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"
</
bean
>
</
property
>
</
bean
>
</
beans
>
|