camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-9540) ResourceHelper.resolveMandatoryResourceAsInputStream - Should support ENV and properties
Date Wed, 27 Jan 2016 17:02:39 GMT

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

Claus Ibsen commented on CAMEL-9540:
------------------------------------

Ah yeah we have likely since added support for property placeholders on all the <dataFormats>.
So you get that out of the box.

It may still be good to do this as some components leverage that helper to load resources.
But then again you often configure endpoints using uris and get that there fore free too.



> ResourceHelper.resolveMandatoryResourceAsInputStream - Should support ENV and properties
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-9540
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9540
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Luca Burgazzoli
>            Priority: Minor
>             Fix For: 2.17.0
>
>
> So you can refer to ENV or {{ }} placeholders.
> What needs to be done is to let the properties placeholder execute the input string first.
> eg call
> org.apache.camel.CamelContext#resolvePropertyPlaceholders
> See nabble
> http://camel.465427.n5.nabble.com/Camel-beanio-mapping-file-outside-the-war-tp5776784.html



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

Mime
View raw message