RnD-John commented on issue #1079: Example Request: CamelJmsToFileExample.java URL: https://github.com/apache/camel-k/issues/1079#issuecomment-565178346 @lburgazzoli, The PropertyInject method is desirable because everything can come from command line properties or from a config map. **I'd still like to get this method to work if possible.** @nicolaferraro, In the mean time, I tested the environment variable method and that worked as expected. > > > Native support will come with properties when we switch to Camel 3.0.1 (next version is expected to support Camel 3.0.0). > > For the time being a possible solution is to use env variables: > > ``` > ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(System.getenv("MY_URI")); > ``` > > And: > > ``` > kamel run --env MY_URI=xxx TheIntegration.java > ``` > > It's more a workaround waiting for property-based configuration, but it should work.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services