Demo application that uses Service Bus client library.
- Set environment variables listed in Environment.java.
SERVICE_BUS_NAMESPACE_CONNECTION_STRING
SERVICE_BUS_QUEUE_NAME
FOREVER
- Anything if you want the sender to run forever.
- Run any of the main programs.
- Add the following dependencies in your pom.xml.
<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId> <version>2.14.1</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.14.1</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-slf4j-impl</artifactId> <version>2.14.1</version> </dependency> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-jsr223</artifactId> <version>3.0.9</version> <scope>runtime</scope> </dependency>
- Add log4j2.xml to your
src/main/resources
. - Add
AZURE_LOG_LEVEL=1
to enable logging for the Azure SDK.
- Add the following dependencies in your pom.xml.
<dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.6</version> </dependency> <dependency> <groupId>org.codehaus.janino</groupId> <artifactId>janino</artifactId> <version>3.1.6</version> </dependency>
- Add logback.xml to your
src/main/resources
. - Add
AZURE_LOG_LEVEL=1
to enable logging for the Azure SDK.