DEV Community

Tech Community for Software AG Tech Community

Posted on • Originally published at tech.forums.softwareag.com on

Using Azure Java API to upload data to Microsoft Azure Blob Storage

Intent

Develop a simple, standalone webMethods Integration Server (IS) service that uses the Azure Java API to upload data to Microsoft Azure Blob Storage. This should work for IS version 10.1 and above.

Overview

See discussion here, where this approach was formulated. Alternatives such as an Azure REST-based solution (simpler, architecturally cleaner) and webMethods Cloudstreams were also discussed.

The alternatives may be better. But this approach has these key features:

  • Simple to use
  • Uses a pre-generated Shared Access Signature (SAS) token for authentication
  • Fewer moving parts (no CloudStream component or calls to login.microsoft.com for OAuth token)
  • Code can be made adapter-like (add calls to list and download blobs, separate connection creation and data transfer)
  • Java API may offer functionality (such as parallel uploads, asynchronous transfers and transfer pause-restart) difficult to access via other mechanisms.
  • Installing code in a separate package with package-level classloader (see NOTES in documentation section) should mitigate JAR version conflicts in future IS upgrades

Check out the code and documentation in the original articlein the Software AG Tech Community.

Top comments (0)