Hi,

For what purpose you need to do that? It's possible to make a dirty hack like 
this though
SpringCamelContext context = (SpringCamelContext)context;
context.setRegistry(new My CustomCompositeRegistry(context.getRegistry()));

I don't know if it really works or not. Note that the 
ApplicationContextRegistry used by SpringCamelContext is just a thin wrapper of 
the spring ApplicationContext. I would stay with spring context rather than 
doing this.

Thanks,
Tomo

On 03/28/2017 09:30 PM, Abhishek.Jha09 wrote:
I know we can add Simple Registry to camel context using this-

CamelContext camelContext = new DefaultCamelContext(SimpleRegistry.class);

But, is there a way to add SimpleRegistry other than the way mentioned
above? I ask because my camel context is initialized by Spring.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-SimpleRegistry-to-Camel-Context-post-Camel-Context-creation-tp5796601.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to