192 Using IBM WebSphere Message Broker as an ESB with WebSphere Process Server
Before an import can make an external call, a few runtime properties must be
defined to the application JRE environment. Those variables can be defined as
entry values during the application server initialization (-D properties), or directly
with Java code.
In this scenario, before the bound ports can be executed on an external HTTPS
service call, a Java snippet activity (Figure 7-21) with the SSL configuration is
defined. This activity is added just after the Receive activity call and before an
import can be executed.
Figure 7-21 Java snippet used to set the SSL properties into the JRE environment
This Java snippet code defines the required SSL properties to use HTTPS
(Example 7-9).
Example 7-9 JRE SSL environment configuration
...
System.setProperty("javax.net.ssl.keyStore", <<keystore path>>);
System.setProperty("javax.net.ssl.keyStorePassword",<<password>>);
System.setProperty("javax.net.ssl.trustStorePassword",<<password>>);
System.setProperty("javax.net.ssl.trustStore", <<truststore path>>);
...
Keystore and truststore file system definitions: The file system definitions
for the keystore and truststore must reflect the same stores that are both used
in the WebSphere application server as in the WebSphere Message Broker.