Forum Home » Fuse Distributions » Fuse Mediation Router

Thread: JAXWS endpoint as camel route

 
This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Feb 1, 2012 3:36 AM Last Post By: njiang Threads: [ Previous | Next ]
mrudul

Posts: 56
Registered: 10/20/11
JAXWS endpoint as camel route
Posted: Jan 24, 2012 10:10 AM
 
  Click to reply to this thread Reply
Hi All

Can we use JAXWS endpoint as camel route?
The reason for using JAXWS endpoint is, we want to enable MTOM. Below is the configuration.

<!-- JAXWS Endpoint -->
<jaxws:endpoint id="reportDataService"
implementor="com.reportdata.service.impl.ReportDataServiceImpl"
address="http://localhost:8092/cxf/ReportDataService">
<jaxws:properties>
<entry key="mtom-enabled" value="true" />
</jaxws:properties>
</jaxws:endpoint>

<!-- Camel context ->
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from
uri="reportDataService"/>
<!-- request processor -->
<to uri="reportRequestCreator" />
</route>
</camelContext>

I tried using cxfEndPoint but the MTOM does not work, hence trying the same with JAXWS endpoint.
njiang

Posts: 572
Registered: 09/17/07
Re: JAXWS endpoint as camel route
Posted: Feb 1, 2012 3:36 AM   in response to: mrudul in response to: mrudul
 
  Click to reply to this thread Reply
No, you have to use the cxfEndpoint instead of JAXWS endpoint in the camel route.

Which version of Camel are you using ?
I think we already fix the properties issue of cxfEndpoint.
Can you try the latest released Camel ?

Willem