Reading values from properties file on karavan. #1242
-
Ask a questionI have code on karavan that needs values from environment file(properties). Is it possible? If yes, how do I that? VariantWeb Application Container Management (if applicable)Docker Operating System (if applicable)Windows Version4.4.0 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
See property handling part https://camel.apache.org/blog/2024/03/camel-karavan-4.4.0/ |
Beta Was this translation helpful? Give feedback.
-
@MN-Dheeraj , in my processor I've imported org.apache.camel.PropertyInject and it doesn' work ... see my screenshots |
Beta Was this translation helpful? Give feedback.
-
@MN-Dheeraj , even resolving custom properties form camelContext does not work ... |
Beta Was this translation helpful? Give feedback.
-
@davsclaus - in my environment the cuomization of docker-compose.yaml doesn't work also. It seems karavan doesn't use the application.properties and docker-ompose.yaml for the jbang generation. |
Beta Was this translation helpful? Give feedback.
-
@MN-Dheeraj - as @davsclaus said in his previous post, application.properties should work for container builds and deployment, but not in the devmode (direct run in karavan). You use your own property file by adding the file by jbang files declaration: I tried to use the jbang files declaration to provide the application.properties for the devmode. @davsclaus - may the karavan team can sole this issue? Best regards, |
Beta Was this translation helpful? Give feedback.
Should be fixed by
https://issues.apache.org/jira/browse/CAMEL-20672