marlinspike / Azure_ServiceBus_AMQP_Demo

Demo of using the Advanced Message Queue Protocol with Azure Service Bus Message Queues

Repository from Github https://github.commarlinspike/Azure_ServiceBus_AMQP_DemoRepository from Github https://github.commarlinspike/Azure_ServiceBus_AMQP_Demo

Azure_ServiceBus_AMQP_Demo

Demo of using the Advanced Message Queue Protocol with Azure Service Bus Message Queues

To configure:
All configuration settings are in the servicebus.properties file -

  • Note the amqp.idleTimeout in the connection string inside the properties file. For Azure SB, it must be a minimum of 60000.
  • [SERVICE_BUS_NAMESPACE] : The name of the Azure Service Bus
  • [Queue_Name] : The name of the Service Bus Queue
  • [SAS_Policy_Name] : The name of a SAS policy queue. NOTE - The SAS policy must be on the Queue itself, and MUST have BOTH send and receive claims. This is not because of this demo, but because of how a sender is created currently, where QueueClient creates a sender in its constructor. See here for related issue report: Azure/azure-service-bus-java#110
  • [SAS_POLICY_KEY] : Either the Primary or Secondary key of the SAS Policy above

To run (maven): mvn exec:java -Dexec.mainClass="rc.SimpleSenderReceiver"

About

Demo of using the Advanced Message Queue Protocol with Azure Service Bus Message Queues


Languages

Language:Java 100.0%