camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kumar5 <deelip.kum...@gmail.com>
Subject camel-2.16.2 spring and java DSL register
Date Fri, 08 Apr 2016 14:42:04 GMT
i am using camel-2.16.2 , spring boot  and java DSL.   As document says if
spring then use ApplicationContextRegistry but ApplicationContextRegistry
doesn't have any method to added  registry.  
i want to register  bean in Java DSL. please any one help me on this.

@Bean
     RouteBuilder createRouteBuilder() {
        return new RouteBuilder() {
            @Override
		public void configure() {
            	CamelContext context = getContext();
            	PropertyPlaceholderDelegateRegistry registry =
(PropertyPlaceholderDelegateRegistry)context.getRegistry();
            	ApplicationContextRegistry aRegistry =
(ApplicationContextRegistry) registry.getRegistry();




--
View this message in context: http://camel.465427.n5.nabble.com/camel-2-16-2-spring-and-java-DSL-register-tp5780772.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message