Hi 

I have a requirement where I need to persist xml in a jcr compliant repo and
subsequently read it
back in camel route. For that I have created a custom component where
producer impl persists the data
and comsumer reads it back. But the problem I facing is....my routes are
going to be like below

route-1
from("bean://task1")
to("myjcr://path=node1/node2/..") ------> here I am persisting xml

route-2
from("bean://task2")
to(''myjcr://path=node1/node2/..") --------> here I need to retrive the xml

but as we know the consumer will never be invoked if it is used in a "to"
endpoint,
I am thinking of changing my custom component such a way that the producer
would handle 
both persisting and retrieval (will pass action=persist/retrieve in uri) or
go for two different compnent. I am not sure how do we deal with such
situation in camel. 

Ghosh
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-custom-component-tp3398359p3398359.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to