[ https://issues.apache.org/jira/browse/CAMEL-13892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16912917#comment-16912917 ]
Sreejesh edited comment on CAMEL-13892 at 8/22/19 3:37 AM: ----------------------------------------------------------- Claus, thanks for the response. I have checked SO now, seems like there's no update from you yet. Here, I forgot to mention one thing - I am calling the /actuator/refresh endpoint via POST. The Bean gets updated in theĀ /actuator/env endpoint, but Camel still uses the old value. Upon restart of the Camel application, it reflects the updated value. But that is not what is expected - Spring cloud config should update the value without manual restart. was (Author: sreejeshraj): Claus, thanks for the response. I have checked SO now, seems like there's no update from you yet. Here, I forgot to mention one thing - I am calling the /actuator/refresh endpoint via POST. The Bean heys updated in theĀ /actuator/env endpoint, but Camel still uses the old value. Upon restart of the Camel application, it reflects the updated value. But that is not what is expected - Spring cloud config should update the value without manual restart. > Spring Cloud Config fails to update properties dynamically > ---------------------------------------------------------- > > Key: CAMEL-13892 > URL: https://issues.apache.org/jira/browse/CAMEL-13892 > Project: Camel > Issue Type: Bug > Components: camel-spring-boot > Affects Versions: 2.24.1 > Reporter: Sreejesh > Priority: Major > > I have a Camel Spring Boot application where I am printing the value of a > property which is set using Spring Cloud Config Server (via Git commit id > plugin). The issue is that the value of the property in Camel application is > not updated once the value is committed to Git. I have to restart the Camel > application which fails the purpose of Spring Cloud Config server. Please > note that we are using Git file system in our local machine. > The name of the properties file is CamelSpringBootSample-dev.properties. > As soon as I commit, the config server publishes the updated value at the > endpoint on refresh: [http://localhost:8888/CamelSpringBootSample/dev] > I have also made the Camel application end point available at: > [http://localhost:8181/actuator/env] > Here the value of the property is not updated on refresh. However, if I > restart the Camel application, the value is reflecting. > The source code for all the three projects are uploaded in github.com. > # The config server: [https://github.com/sreejeshraj/config-server] > # The Camel client project (which uses the config server to configure > itself): [https://github.com/sreejeshraj/camel-config-server] Please do not > get misled by the repository name camel-config-server. This is the client of > config server, but I accidentally named it incorrectly, apologies. > # The local git repository where the configuration properties are stored: > [https://github.com/sreejeshraj/Git-Config] > Please note that I have used the annotation @RefreshScope in my Spring bean > component class. > Can you please help me with this? Thanks in advance -- This message was sent by Atlassian Jira (v8.3.2#803003)