Member since
08-05-2024
6
Posts
3
Kudos Received
0
Solutions
12-18-2024
12:41 AM
1 Kudo
Hi @hegdemahendra I am also facing same issue With FetchDistributedMapCache. How can i check the size of the flowfile we are reading, for me also it is set to 1Mb but the data we are saving in cache should not be 1Mb as we are barely saving 100characters in the flowfile payload. How can we check the data size we are trying to get from cache? Thanks Akash
... View more
08-08-2024
02:16 PM
1 Kudo
I tried a fix and it works but not as expected. This updates the default global SSL Context, I want similar logic which should be specific to this consume jms processor and should not affect the global SSL Context. try {
String jndiTruststorePath = context.getProperty(JNDI_TRUSTSTORE).evaluateAttributeExpressions().getValue().trim();
// Load the truststore
KeyStore trustStore = KeyStore.getInstance("JKS");
FileInputStream file = null;
try {
file = new FileInputStream(jndiTruststorePath);
trustStore.load(file, "changeit".toCharArray());
} finally {
if (file != null) {
file.close();
}
}
// Initialize TrustManager
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
trustManagerFactory.init(trustStore);
// Set up SSLContext
SSLContext sslContext = SSLContext.getInstance("TLS");
sslContext.init(null, trustManagerFactory.getTrustManagers(), null);
// Set the default SSL context
SSLContext.setDefault(sslContext);
logger.info("Successfully configured the default SSL context");
} catch (Exception e) {
logger.error("Failed to configure SSL context", e);
throw new ProcessException(e);
}
... View more
08-06-2024
06:35 AM
@MattWho We are using Jndi Configurations, there is no option to pass ssl with jndi configurations.
... View more