Azure/azure-functions-java-library

SpringBoot Azure Function

debinaik opened this issue · 4 comments

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 Azure/azure-sdk-for-java#16355 . Please find the details code reference and communication details at the parent ticket Azure/azure-sdk-for-java#16355

Please update me urgently as it's already delayed much

Hi Team,

Request your update please.

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.

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.

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