Information Management IBM InfoSphere Master Data Management, Version 11.3

Creating a secure Java connection with the Java SDK

The SDK for Java™ can be configured to use SSL for communication with the SOAP web services. If you are creating the madison.mpi.Context yourself, make two changes to the existing code to create a secure connection.

About this task

You do not need to do additional configuration of the operational server to access the SOAP web services securely using SSL. Instead, when the SOAP web services are deployed, they are simultaneously available on both the WC_defaulthost port (which is typically 9080), and the WC_defaulthost_secure port (which is typically 9443).

However, if you are using a ContextPool or the ContextManager class, make sure that the properties you pass to the classes contain the property UseSSL=true to enable SSL communications with the contexts in the pool. If you are using a PoolContextProvider, ensure the useSSL property is set to true in your configuration file.

Procedure

  1. Supply the Context with the secure port number. In the default case, this means changing the port from 9080 to 9443.
  2. Configure the Context to indicate that you are using a secure port. Do so by passing the MpiNetRR.USE_SSL property to the Context on creation:
    String host = "myservername.com"; // needs to match the hostname of the server & certificate
    int port = 9443; // WC_defaulthost_secure port
    
    String userId = "mdmadmin";
    String password = "mdmadmin";
    
    Properties props = new Properties();
    props.setProperty(MpiNetRR.USE_SSL, "true");
    
    UsrHead usrHead = new UsrHead(userId, password);
    Context ctx = new Context(host, port, usrHead, props);


Last updated: 27 June 2014