Introducing the all-new TIBCO Community site!

For current users, please click "Sign In" to reset your password and access the enhanced features. If you're a first-time visitor, we extend a warm welcome—click "Sign Up" to become a part of the TIBCO Community!

If you're seeking alternative community sites, explore ibi, Jaspersoft, and Spotfire.

Jump to content

What is the proper java code for connecting to EMS using SSL


John Huh 2

Recommended Posts

What is the proper java code for connecting to EMS using SSL

 

TibjmsAdmin(java.lang.Stringurl, java.lang.StringuserName, java.lang.Stringpassword, java.util.MapsslParams)

 

I can't figure out how to code the sslParams part.

 

Thanks in advance.

 

/john

Link to comment
Share on other sites

  • 3 years later...

The proper way would be like this:

Map sslParams = new Hashtable();

sslParams.put(TibjmsSSL.TRUSTED_CERTIFICATES, trustedCAs);

sslParams.put(TibjmsSSL.ENABLE_VERIFY_HOST_NAME, true);

sslParams.put(TibjmsSSL.ENABLE_VERIFY_HOST, false);

// Establish a connection.

TibjmsAdmin admin = new TibjmsAdmin(brokerUrl, user, pass, sslParams));

Link to comment
Share on other sites

×
×
  • Create New...