Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Swordfish Documentation: CXF Integration"
Line 5: | Line 5: | ||
To deploy the CXF endpoint into the NMR, the bundle that contains the following spring osgi application context should be started: | To deploy the CXF endpoint into the NMR, the bundle that contains the following spring osgi application context should be started: | ||
− | + | <beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:osgi="http://www.springframework.org/schema/osgi" | xmlns:osgi="http://www.springframework.org/schema/osgi" | ||
Line 20: | Line 20: | ||
<jaxws:endpoint id="bookingService" | <jaxws:endpoint id="bookingService" | ||
implementor="org.eclipse.swordfish.samples.cxf.BookingServiceImpl" | implementor="org.eclipse.swordfish.samples.cxf.BookingServiceImpl" | ||
− | address="nmr:BookingService"> | + | address="nmr:BookingService"> |
− | + | <jaxws:inInterceptors> | |
− | + | <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> | |
− | + | </jaxws:inInterceptors> | |
</jaxws:endpoint> | </jaxws:endpoint> | ||
− | + | </beans> | |
The entry address="nmr:BookingService" specifies that endpoint should be pluged into the nmr and it should be deployed along with the property SERVICE_NAME=BookingService. | The entry address="nmr:BookingService" specifies that endpoint should be pluged into the nmr and it should be deployed along with the property SERVICE_NAME=BookingService. |
Revision as of 08:01, 10 March 2009
Swordfish is built on top of the Servicemix 4 NMR and it leverages its CXF integration capabilities.
http://servicemix.apache.org/SMX4/cxf-examples.html
To deploy the CXF endpoint into the NMR, the bundle that contains the following spring osgi application context should be started:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:camel-osgi="http://activemq.apache.org/camel/schema/osgi" xmlns:http="http://servicemix.apache.org/http/1.0" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.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/transport/nmr/cxf-transport-nmr.xml" /> <jaxws:endpoint id="bookingService" implementor="org.eclipse.swordfish.samples.cxf.BookingServiceImpl" address="nmr:BookingService"> <jaxws:inInterceptors> <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/> </jaxws:inInterceptors> </jaxws:endpoint> </beans>
The entry address="nmr:BookingService" specifies that endpoint should be pluged into the nmr and it should be deployed along with the property SERVICE_NAME=BookingService.