azure-docs-sdk-java/docs-ref-services/spring-cloud-starter-storag...

4.1 KiB

title keywords author ms.author ms.date ms.topic ms.prod ms.technology ms.devlang ms.service
Azure Spring cloud Starter Storage Queue client library for Java Azure, java, SDK, API, spring-cloud-starter-azure-storage-queue, springcloud maggiepint magpint 09/15/2020 article azure azure java springcloud

Azure Spring cloud Starter Storage Queue client library for Java - Version 1.2.8

The Spring Cloud Storage Queue starter helps developers to finish the auto-configuration of Storage Queue and provides Spring Integration with Storage Queue.

Package (Maven) | API reference documentation | Samples

Getting started

Prerequisites

Include the package

<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>spring-cloud-starter-azure-storage-queue</artifactId>
    <version>1.2.8</version>
</dependency>

Key concepts

Azure Queue Storage is a service for storing large numbers of messages. You access messages from anywhere in the world via authenticated calls using HTTP or HTTPS. A queue message can be up to 64 KB in size. A queue may contain millions of messages, up to the total capacity limit of a storage account. Queues are commonly used to create a backlog of work to process asynchronously.

Examples

Please refer to this sample project illustrating how to use Spring cloud Starter Storage Queue.

Troubleshooting

Enable client logging

Azure SDKs for Java offers a consistent logging story to help aid in troubleshooting application errors and expedite their resolution. The logs produced will capture the flow of an application before reaching the terminal state to help locate the root issue. View the logging wiki for guidance about enabling logging.

Enable Spring logging

Spring allow all the supported logging systems to set logger levels set in the Spring Environment (for example, in application.properties) by using logging.level.<logger-name>=<level> where level is one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, or OFF. The root logger can be configured by using logging.level.root.

The following example shows potential logging settings in application.properties:

logging.level.root=WARN
logging.level.org.springframework.web=DEBUG
logging.level.org.hibernate=ERROR

For more information about setting logging in spring, please refer to the official doc.

Next steps

The following section provides sample projects illustrating how to use the starter in different cases.

More sample code

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

Please follow instructions here to build from source or contribute.