I need to be able to set a system property in a Mobilefirst Java adapter (7.1). When I do add it, it seems to have no effect as it does in a stand-alone java app in eclipse. Any ideas on how to get the same function?
UPDATE: I apologize...should have added code sample....
You can see which setProperties I am referring to below....neither seem to take affect. The first one should dump out a bunch of debug info...second one will not print anything...but will fix another issue with TLSv1.2.
public String getHTTPRequest(String baseURL, String authHeader) {
    logger.info("In getHTTPRequest");
    logger.info("Parms: URL = " + baseURL + " auth = " + authHeader);
    System.setProperty("javax.net.debug", "ssl:handshake:verbose");
    System.setProperty("jsse.enableSNIExtension", "false");
    String json = "";
    try {
        SSLContext context = SSLContext.getInstance("TLSv1.2");
        context.init(null, null, null);
        SSLConnectionSocketFactory sslCF = new SSLConnectionSocketFactory(context, new HostnameVerifier() {
                @Override
                public boolean verify(String hostname, SSLSession session) {
                    // or add your own test here
                    return true;
                }
            });
        //CloseableHttpClient httpClient = HttpClientBuilder.create().setSSLSocketFactory(sslCF).build();
        HttpClientBuilder clientBuilder = HttpClientBuilder.create().setSslcontext(context);
        CloseableHttpClient httpClient = clientBuilder.build();
        HttpGet request = new HttpGet(new URI(baseURL));
        request.addHeader("Authorization", authHeader);
        CloseableHttpResponse httpResponse = httpClient.execute(request);
        json = EntityUtils.toString(httpResponse.getEntity());
        System.out.println(" Response = " + json);
    } catch (Exception e) {
        logger.info(" Exception in getHTTPRequest = " + e.toString());
    }
    return json;
}