Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intialize Spring Context before Function Host start #1184

Open
ashusah opened this issue Sep 17, 2024 · 1 comment
Open

Intialize Spring Context before Function Host start #1184

ashusah opened this issue Sep 17, 2024 · 1 comment

Comments

@ashusah
Copy link

ashusah commented Sep 17, 2024

Hello

Currenly I am trying to use @KafkaTriger which needs SSL and Roor certificate and private key file to connect to Kafka Server.
However these information needs to be fetched from Key Vault.

We have added Spring @dependsOn annotation but spring never is initialize before KafkaTrigger is started and it gives error because files are not downloaded.

Spring only starts when some function is triggered.

Is there a way or may be a new feature where we can start as soon as function app is deployed.

@olegz
Copy link
Contributor

olegz commented Oct 7, 2024

I don't understand the relevance of this issue/question to Spring Cloud Function? can you please clarify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants