camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Karpe <>
Subject Re: Is there a way to change a bean config when testing?
Date Mon, 04 Jul 2011 19:47:11 GMT

It is possible to do via the Registry.

You can store a bean reference in the registry and then refer to it. A
aimple way to do this is to use the "Ref" component. 

You can also do this programmatically as shown in the Netty unit test below
where objects are bound in a registry and then referred to in the route.

Hope this helps.



Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary) 

CamelOne 2011: 
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message