question

SantoshPrabhuKumar-0651 avatar image
0 Votes"
SantoshPrabhuKumar-0651 asked MayankBargali-MSFT answered

Connecting to Azure Event Grid and Service Bus using Java/Spring

I have a scenario where Azure ServiceBus sends events to Event Grid whenever there is a message in Azure Service bus's queue/topic. So how do I establish the connection in Java/Spring with Event Grid to receive events and also with Service Bus to pull the messages. What are the configurations are to be done in Java/Spring to establish connections with Event Grid and Azure Service bus?

azure-service-busazure-event-gridazure-spring-cloud
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

Hi @SantoshPrabhuKumar-0651

Welcome to Microsoft Q&A! Thanks for posting the question.

For service bus, you can refer to Send messages to and receive messages from Azure Service Bus queues
You can refer to the Event Grid SDK overview document. For Java event grid sample refer to this and for maven config refer to this.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.