Using the JMSConfigFeaturePage edited by Christian SchneiderChanges (1)
Full ContentIn older CXF version the JMS transport is configured by defining a JMSConduit or JMSDestination. Starting with CXF 2.0.9 and 2.1.3 the JMS transport includes an easier configuration option that is more conformant to the spring dependency injection. Additionally the new configuration has much more options. For example it is not necessary anymore to use JNDI to resolve the connection factory. Instead it can be defined in the spring config. The following example configs use the p-namespace from spring 2.5 but the old spring bean style is also possible. Inside a features element the JMSConfigFeature can be defined. <jaxws:client id="CustomerService" xmlns:customer="http://customerservice.example.com/" serviceName="customer:CustomerServiceService" endpointName="customer:CustomerServiceEndpoint" address="jms://" serviceClass="com.example.customerservice.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> In the above example it references a bean "jmsConfig" where the whole configuration for the JMS transport can be done.
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache CXF Documentation > Using the JMSConfigFeature confluence
- [CONF] Apache CXF Documentation > Using the JMSConfigFe... confluence
- [CONF] Apache CXF Documentation > Using the JMSConfigFe... confluence
- [CONF] Apache CXF Documentation > Using the JMSConfigFe... confluence
