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

Santosh Prabhu Kumar 1 Reputation point
2021-05-29T15:47:32.803+00:00

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 Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
623 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
379 questions
Azure Spring Apps
Azure Spring Apps
An Azure platform as a service for running Spring Boot applications at cloud scale. Previously known as Azure Spring Cloud.
124 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,426 Reputation points
    2021-05-31T02:31:54.423+00:00

    Hi @Santosh Prabhu Kumar

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.