You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Alexey Markevich (JIRA)" <ji...@apache.org> on 2015/09/07 11:07:45 UTC

[jira] [Created] (CAMEL-9117) Context independent RouteBuilder: allow to put bean in Registry while configure()

Alexey Markevich created CAMEL-9117:
---------------------------------------

             Summary: 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: bean-integration
    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
(v6.3.4#6332)