java-on-azure-examples
java-on-azure-examples copied to clipboard
Send and receive messages to a local Azure Service Bus Emulator
Purpose
- Sending and receiving messages to a local Azure Service Bus Emulator
Does this introduce a breaking change?
[ ] Yes
[X] No
Pull Request Type
What kind of change does this Pull Request introduce?
[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:
How to Test
- Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
mvn clean install
- Test the code
cd servicebus/emulator
docker compose -f src/main/docker/docker-compose.yaml up -d
mvn clean compile
mvn exec:java -Preceive
mvn exec:java -Psend
docker compose -f src/main/docker/docker-compose.yaml down
What to Check
- Check that an Hello World message has been sent and received
Other Information
Still in DRAFT PR because it looks like the Java SDK is not ready yet for the Azure Service Bus Emulator:
- See https://github.com/Azure/azure-sdk-for-java/issues/38735
- See https://github.com/Azure/azure-service-bus-emulator-installer/issues/25