8.5.3. 고급 Azure Storage Blob 구성
Camel 애플리케이션이 방화벽 뒤에서 실행 중이거나 BlobServiceClient 인스턴스 구성을 더 많이 제어해야 하는 경우 고유한 인스턴스를 만들 수 있습니다.
StorageSharedKeyCredential credential = new StorageSharedKeyCredential("yourAccountName", "yourAccessKey");
String uri = String.format("https://%s.blob.core.windows.net", "yourAccountName");
BlobServiceClient client = new BlobServiceClientBuilder()
.endpoint(uri)
.credential(credential)
.buildClient();
// This is camel context
context.getRegistry().bind("client", client);
그런 다음 Camel azure-storage-blob 구성 요소 구성에서 이 인스턴스를 참조하십시오.
from("azure-storage-blob://cameldev/container1?blobName=myblob&serviceClient=#client")
.to("mock:result");