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

Andrea Cosentino commented on CAMEL-19603:
------------------------------------------

The only thing I've tried is by exporting this project: 
https://github.com/apache/camel-kamelets-examples/tree/main/jbang/postgresql-gcp-secret-refresh

I exported that to SB and Quarkus with something like

{code:java}
jbang -Dcamel.jbang.version=4.0.0-RC1 camel@apache/camel export 
--secrets-refresh --secrets-refresh-providers=gcp --runtime=spring-boot 
--gav=com.github.oscerd:gcp-test:1.0-SNAPSHOT  
--directory=/home/oscerd/workspace/gcp-quarkus/ --spring-boot-version=3.1.1 
postgresql-log.yaml gcp-sec-refresh.properties
{code}

and then move the gcp-sec-refresh.properties into application.properties

It could also be enough to run this

https://github.com/apache/camel-spring-boot-examples/tree/main/aws-secrets-manager

but adding the following properties to the application.properties


{code:java}
camel.vault.aws.refreshEnabled=true
camel.vault.aws.refreshPeriod=60000
camel.vault.aws.secrets=Secret
camel.main.context-reload-enabled = true
{code}


but you will always need to create the secret on AWS Secrets Manager


> Spring Boot and Quarkus runtimes: @PeriodicTask annotated task are not 
> running even if scheduled
> ------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-19603
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19603
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Andrea Cosentino
>            Priority: Major
>             Fix For: 4.0.0, 4.0-RC2
>
>
> When we introduced the secret refresh feature we add the concept of 
> @PeriodicTask, essentially we schedule the task every period seconds and add 
> it to a scheduler in BaseMainSupport. 
> While for Camel-jbang, through camel-main, everything is working fine. For 
> Quarkus and Spring-Boot the task is never called, with the exact same 
> configuration of the working one on main.
> cc [~davsclaus]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to