how to get camel cxfrs rsServer endpoint resource class invoked
Issue
we have a camel cxfrs route and a rsServer endpoint binds to a java class:
<bean id="serviceClass" class="com.test.helloworld.HelloWorldImpl"/>
<camelcxf:rsServer id="serverEndpoint" address="http://localhost:9090/helloWorld" loggingFeatureEnabled="true">
<camelcxf:serviceBeans>
<ref bean="serviceClass" />
</camelcxf:serviceBeans>
</camelcxf:rsServer>
<camelContext id="helloWorld" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="cxfrs:bean:serverEndpoint"/>
<log message="${camelId} Befor calling service, the message is ${body}"/>
<to uri="direct:transform"/>
</route>
<route>
<from uri="direct:transform"/>
<bean ref="HelloWorldResponseTransformer" method="transform"/>
</route>
When the route was executed the "serverClass" was never called and the route failed silently without any error.
Environment
- JBoss Fuse
- 6.2.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.