-
1. Re: From component bean to camel route
kcbabo Dec 10, 2014 8:17 AM (in response to mlybarger)1 of 1 people found this helpfulDo you have a specific challenge/question w/r/t routing from bean services to Camel services? From a switchyard.xml standpoint, you would just have two components : one for a bean service implementation and another for the camel implementation. The bean service would have a reference defined which wired to the camel service. Inside your bean service, use the following to make the reference available to your implementation:
@Inject @Reference
private SomeCamelService camelService;
Check out the Consuming a Service section in the bean service docs for more info:
-
2. Re: From component bean to camel route
mlybarger Dec 12, 2014 12:30 PM (in response to kcbabo)No, I'm looking for a example, My use case is this. I have a bean that gets invoked from an service reference. The bean does some up front processing, then needs to send a message to be routed on. As part of the routing, it might get sent to another bean. I guess what I don't know how to do is how to put my own objects onto the message context so that i can transfer information from my bean to the camel route. Typically a camel route just has a configure() method on it(dsl route).
So, for the below image, before the ProxyService camel route in the middle, I have a bean component in there.