Re: Writing a Component - passing in arguments

2013-10-21 Thread Claus Ibsen
You can configure components using regular java code, for example if you have getter/setters on the component. In the routes with to / toF then its an endpoint uri you configure. Though the component is called, to create the endpoint, so you can essentially grab that information when createEndpoin

Re: Writing a Component - passing in arguments

2013-10-20 Thread Willem jiang
Camel support to look up the Object instance reference form the registry (Spring ApplicationContext). Camel URI support to set the parameter with the instance refrence like this “#referenceName”. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (

Writing a Component - passing in arguments

2013-10-20 Thread John D. Ament
Let's say that I'm looking to write a component. I want my component to understand the Object... params that are passed in to it, such that instead of camel processing: toF("foo://%s","something") I want the "something" to be passed to my component instead. Is this possible?