Skip to content
This repository was archived by the owner on Sep 19, 2019. It is now read-only.

The getting started sample demonstrates how to perform common tasks using the Azure Queue Service in Java including inserting, peeking, getting and deleting queue messages, as well as creating and deleting queues.

License

Notifications You must be signed in to change notification settings

Azure-Samples/storage-queue-java-getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
services platforms author
storage
java
mjeelanimsft

Getting Started with Azure Queue Service in Java

This sample demonstrates how to use the Queue Storage service. Queue storage provides reliable messaging for workflow processing and for communication between components of cloud services.

Note: If you don't have a Microsoft Azure subscription you can get a FREE trial account here.

Running this sample

This sample can be run using either the Azure Storage Emulator (Windows), by updating the config.properties file with your Storage account name and key, or using the Azure CLI.

To run the sample using the Storage Emulator (default option):

  1. Download and install the Azure Storage Emulator https://azure.microsoft.com/en-us/downloads/
  2. Start the emulator (once only) by pressing the Start button or the Windows key and searching for it by typing "Azure Storage Emulator". Select it from the list of applications to start it.
  3. Set breakpoints and run the project.

To run the sample using the Storage Service

  1. Open the config.properties file and comment out the connection string for the emulator (UseDevelopmentStorage=True) and uncomment the connection string for the storage service (AccountName=[]...).
  2. Create a Storage Account through the Azure Portal and provide your [AccountName] and [AccountKey] in the config.properties file. See https://azure.microsoft.com/en-us/documentation/articles/storage-create-storage-account/ for more information
  3. Set breakpoints and run the project.

To run the sample using Azure CLI:

  1. Install Azure CLI
  2. Login with Azure CLI
  3. Run node setup.js
  4. mvn compile exec:java
  5. Run node teardown.js

More information

About

The getting started sample demonstrates how to perform common tasks using the Azure Queue Service in Java including inserting, peeking, getting and deleting queue messages, as well as creating and deleting queues.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6