Hi Kevin,
Firstly to connect to an SSL enabled broker through a BrokerClient/BrokerAdminClient you have to use the BrokerConnectionDescriptor class to set the SSL related parameters.
I see from your code above you are passing null to the BrokerConnectionDescriptor parameter in the BrokerAdminClient constructor.
The sample code to connect to the SSL enabled broker using BrokerClient/BrokerAdminClient is as below:
BrokerAdminClient c;
BrokerConnectionDescriptor bcd = null ;
bcd = new BrokerConnectionDescriptor();
bcd.setAccessLabelHint(“”);
bcd.setAutomaticReconnect(true);
bcd.setConnectionShare(false);
bcd.setSSLCertificate(pathTosslCertificateFile,sslPassword,sslDistinguishedName);
bcd.setSSLEncrypted(false);
bcd.setStateShare(false);
c = new BrokerAdminClient(broker_host, broker_name, null,
client_group, “My Broker Monitor”,bcd);
For a non-SSL connection bcd can be null.
Thanks
sivaram
#webMethods#Universal-Messaging-Broker#Integration-Server-and-ESB#broker