-
When upgrading the java version from Example code which does not have any values injected and throws exceptions when the config not found.
@ApplicationScoped
public class S3Service {
@Inject
public S3Service(
final S3Client s3Client,
@ConfigProperty(name = "bucket") final Provider<String> bucket,
@ConfigProperty(name = "bucket.encryption") final Provider<String> bucketEncryption,
@ConfigProperty(name = "max.concurrency") final int maxConcurrency,
@ConfigProperty(name = "min.part.size.in.mb") final int minPartSizeInMB,
@ConfigProperty(name = "target.throughput") final double targetThroughputInGBPS) {
this(s3Client,
S3TransferManager.builder()
.s3Client(S3AsyncClient.crtBuilder()
.targetThroughputInGbps(targetThroughputInGBPS)
.minimumPartSizeInBytes(minPartSizeInMB * MB)
.maxConcurrency(maxConcurrency)
.build())
.build(),
bucket, bucketEncryption);
}
...
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
/cc @radcortez (config) |
Beta Was this translation helpful? Give feedback.
@radcortez , I was able to "resolve" the issue by setting the following Java system property:
Is this the desired workaround or fix or is there something more elegant?