azure-docs-sdk-java/docs-ref-services/spring-integration-eventhub...

4.4 KiB
Исходник Постоянная ссылка Ответственный История

title keywords author ms.author ms.date ms.topic ms.prod ms.technology ms.devlang ms.service
Azure Event Hubs Spring Integration client library for Java Azure, java, SDK, API, spring-integration-eventhubs, springcloud maggiepint magpint 09/15/2020 article azure azure java springcloud

Azure Event Hubs Spring Integration client library for Java - Version 1.2.8

The Spring Integration for Event Hubs extension project provides inbound and outbound channel adapters and gateways for Azure Event Hubs. Event Hubs is a fully managed, real-time data ingestion service thats simple, trusted, and scalable. Stream millions of events per second from any source to build dynamic data pipelines and immediately respond to business challenges.

Source code | Package (Maven) | API reference documentation | Samples

Getting started

Prerequisites

Include the package

<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>spring-integration-eventhubs</artifactId>
    <version>1.2.8</version>
</dependency>

Key concepts

Spring Integration enables lightweight messaging within Spring-based applications and supports integration with external systems via declarative adapters. Those adapters provide a higher-level of abstraction over Springs support for remoting, messaging, and scheduling.

Examples

Please refer to this sample project illustrating how to use Event Hubs integration.

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 provide a sample project illustrating how to use this package.

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.