Azure / azure-functions-java-library

Contains annotations for writing Azure Functions in Java
MIT License
42 stars 42 forks source link

SpringBoot Azure Function #140

Closed debinaik closed 1 year ago

debinaik commented 3 years ago

Hi Team,

Could you please confirm , if spring boot azure function supports below triggers ?

1.IoT HUB Trigger 2.Timer Trigger.

I have encountered issues with timer trigger and .I am requested to reach this community as per the ticket https://github.com/Azure/azure-sdk-for-java/issues/16355 . Please find the details code reference and communication details at the parent ticket https://github.com/Azure/azure-sdk-for-java/issues/16355

Please update me urgently as it's already delayed much

debinaik commented 3 years ago

Hi Team,

Request your update please.

TsuyoshiUshio commented 3 years ago

Hi @debinaik

I tried spring cloud with timer trigger. It works. See the attached. I tested with Spring Boot and DI with autowired. spring-trigger.zip

image

On the issue, you said "Spring azure function for timer trigger is not working. " How "not working"? timer trigger doesn't execute at all? or throw exception? autowired doesn't work?

I also the organizer , however, better place to ask this issue is

I believe the kind of trigger doesn't matter.

debinaik commented 3 years ago

Thanks @TsuyoshiUshio. For me earlier, It was unable to pass the execution controller to spring @Service class. But this code piece provided by you works well . It would be great, if you please share the Azure Function with [IoTHubTrigger] sample code piece ,if same is handy with you.

Again thanks much.

kaibocai commented 1 year ago

Please reopen the issue if you still have this question. Thanks.