You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Jan Bednar (JIRA)" <ji...@apache.org> on 2019/07/18 23:13:00 UTC
[jira] [Resolved] (CAMEL-9117) Context independent RouteBuilder:
allow to put bean in Registry while configure()
[ https://issues.apache.org/jira/browse/CAMEL-9117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Bednar resolved CAMEL-9117.
-------------------------------
Resolution: Duplicate
This was resolved by CAMEL-10792. CompositeRegistry is removed in Camel 3 and DefaultRegistry supports bind method.
> Context independent RouteBuilder: allow to put bean in Registry while configure()
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-9117
> URL: https://issues.apache.org/jira/browse/CAMEL-9117
> Project: Camel
> Issue Type: New Feature
> Components: camel-core
> Affects Versions: 2.15.3
> Reporter: Alexey Markevich
> Priority: Minor
>
> I have a RouteBuilder with endpoints like
> {noformat}
> cxfrs://bean://cCXFRS_1
> {noformat}
> To update CamelContext registry I used
> {noformat}
> final CamelContext camelContext = getContext();
> final org.apache.camel.impl.SimpleRegistry registry = new org.apache.camel.impl.SimpleRegistry();
> final org.apache.camel.impl.CompositeRegistry compositeRegistry = new org.apache.camel.impl.CompositeRegistry();
> compositeRegistry.addRegistry(camelContext.getRegistry());
> compositeRegistry.addRegistry(registry);
> ((org.apache.camel.impl.DefaultCamelContext) camelContext)
> .setRegistry(compositeRegistry);
> {noformat}
> and register cusom beans
> {noformat}
> registry.put("cCXFRS_1", factory_cCXFRS_1);
> {noformat}
> org.apache.camel.spi.Registry doesn't support any put/bind which can be usefull for such case
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)