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.