Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .prep/quickstart/helloworld-jms/readyworkshopcommands - jms.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
### Step ONE - Clone and Prep - DO THIS JUST ONCE

```
mkdir readyworkshop
git clone --recurse-submodules https://github.com/Azure-Samples/migrate-java-ee-app-to-azure-2
cd migrate-Java-EE-app-to-azure-2
yes | cp -rf .prep/* .
cd quickstart
mvn clean install
```
#############

### Create and Configure Azure Service Bus

```
az login
cd helloworld-jms
mkdir .scripts
cp set-env-variables-template.sh .scripts/set-env-variables.sh
vi .scripts/set-env-variables.sh
. .scripts/set-env-variables.sh
```

### Deploy to Azure - Create the Service Bus

```
az group create --name ${RESOURCEGROUP_NAME} \
--location ${REGION}

Expand All @@ -41,13 +48,22 @@ az servicebus queue authorization-rule keys list \
--namespace-name ${DEFAULT_SBNAMESPACE} \
--queue-name ${SB_QUEUE} \
--resource-group ${RESOURCEGROUP_NAME}
```

### Modify .scripts/set-env-variables.sh

```
vi .scripts/set-env-variables.sh
```

#From the values displayed for the keys, grab the primarykey value. Open the .scripts/set-env-variables.sh file and set the primaryKey as value for variable SB_SAS_KEY
# From the values displayed for the keys, grab the primarykey value. Open the .scripts/set-env-variables.sh file and set the primaryKey as value for variable SB_SAS_KEY

```
. .scripts/set-env-variables.sh
```

# Run the JMS API console app

#Run the JMS API console app
```
mvn clean compile exec:java -Dexec.cleanupDaemonThreads=false
```