Never mind, I found a way to do this. I did the following to make my scenario
work. Initially for the remote endpoint I had jaxrs:server definition as
well which caused binding exceptions. I removed that and then the example
started working. All we need to is rsServer and rsClient configurations.
Following is what required.
<bean id="bookStoreImpl"
class="camelinaction.rs.bookstore.BookStoreImpl"
/>
<bean id="bookStoreProcessor3"
class="camelinaction.BookStoreProcessor3" />
<bean id="bookStoreProcessor4"
class="camelinaction.BookStoreProcessor4" />
<camel:camelContext>
<camel:route>
<camel:from uri="cxfrs://bean://laptopBookStoreConsumer"/>
<camel:process ref="bookStoreProcessor3"></camel:process>
<camel:process ref="bookStoreProcessor4"></camel:process>
<camel:to uri="cxfrs://bean://laptopBookStoreProducer"/>
</camel:route>
</camel:camelContext>
<cxf:rsServer id="laptopBookStoreConsumer"
address="http://localhost:8080/LaptopBookStoreRouterTest/route"
serviceClass="camelinaction.rs.bookstore.BookStoreImpl"
loggingFeatureEnabled="true" loggingSizeLimit="20"/>
<cxf:rsClient id="laptopBookStoreProducer"
address="http://remote:8080/BookStoreRS-1.0.0/app/bookstore/impl/rest"
serviceClass="camelinaction.rs.bookstore.BookStore"
inheritHeaders="true"
loggingFeatureEnabled="true" />
--
View this message in context:
http://camel.465427.n5.nabble.com/Is-this-possible-in-Camel-tp5577569p5577916.html
Sent from the Camel - Users mailing list archive at Nabble.com.