Skip to content

Latest commit

 

History

History
68 lines (42 loc) · 1.79 KB

File metadata and controls

68 lines (42 loc) · 1.79 KB

Send a JMS message to an Azure Service Bus Queue

servicebus/send-jms-message/README.md

Prerequisites

This example assumes you have previously completed the following examples:

  1. Create an Azure Resource Group
  2. Create an Azure Service Bus
  3. Create an Azure Service Bus Queue

Send a JMS message to an Azure Service Bus Queue

First, create the environment variables used to connect to our message queue using the command line below:

  export SERVICE_BUS_QUEUE_CONNECTION_STRING=$(az servicebus namespace authorization-rule keys list \
    --resource-group $RESOURCE_GROUP --namespace-name $SERVICE_BUS --name RootManageSharedAccessKey \
    --query primaryConnectionString --output tsv)

Then build the client:

  mvn clean package

And then send the message:

  java -jar target/send-jms-message.jar

Cleanup

Do NOT forget to remove the resources once you are done running the example.

1m