camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomohisa Igarashi <>
Subject Re: Adding SimpleRegistry to Camel Context post Camel Context creation.
Date Wed, 29 Mar 2017 03:52:26 GMT

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.


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:
> Sent from the Camel - Users mailing list archive at

View raw message