[ 
https://issues.apache.org/jira/browse/CAMEL-7699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14301763#comment-14301763
 ] 

Henryk Konsek commented on CAMEL-7699:
--------------------------------------

Actually this is solved by Spring Boot Camel (1). As soon as Spring Boot 
detects camel-spring-boot jar, it autoloads Camel support which includes 
bridging Camel properties and Spring Boot property sources. So you can define 
your routes like...

{code}
from("{{route.from}}").to("{{route.to}}");
{code}

...then specify default values in {{application.properties}} or 
{{application.yml}}...

{code}
route.from=jms:in
route.to=jms.out
{code}

...then override them via system properties or environment variable...

{code}
route.from=jms:overriden.in java -Droute.to=jms:processed.invoices -jar 
mySpringApp.jar
{code}

TL;DR Camel Spring Boot already supports overriding Camel properties using 
standard Spring Boot mechanism :) .

(1) http://camel.apache.org/spring-boot.html

> spring-boot - Make Property placeholders as easy to use as with plain spring
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-7699
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7699
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-spring-boot
>            Reporter: Claus Ibsen
>             Fix For: Future
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Overriding-Properties-tp5754922.html
> We may need to add some spring-boot component / code or whatever to make 
> property placeholders as integrated as we can do with plain camel-spring 
> today.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to