This section describes how to modify the above example to use SSL communications between the TIBCO Enterprise Message Service server, JBoss, and the client program. This section assumes you have already set up and run the example detailed in the previous sections.
Add the TIBCO tibcrypt.jar file to the
CLASSPATH of the JBoss server by modifying the file
%JBOSS_CONF%\jboss-service.xml as described below. Substitute an appropriate JAR file
CLASSPATH for your installation.
There are two aspects to SSL communications between JBoss and the TIBCO EMS server. The first is for messaging between the JBoss and TIBCO servers to occur over SSL. The second is for JNDI lookups from JBoss to the TIBCO JNDI provider to occur over SSL. The following two sections separately describe the required steps for each.
Modify the line you added to %JBOSS_DEPLOY%\jms\jms-ds.xml in the previous section (which specifies the
QueueFactoryRef attribute of the JMS
ProviderLoader) to be the be the new connection factory you just created (which establishes SSL connections):
The following JAR file, distributed with TIBCO Enterprise Message Service, must be added to the
CLASSPATH of the client program, in the same manner that you added the non-SSL jar files to the
CLASSPATH in the previous example:
The following changes must be made to the file %JBOSS_CLIENT%\jndi.properties that you modified in the previous section for the client:
If you now run the test program again, you should see that it throws the same exception. This shows that when the TIBCO Enterprise Message Service server was set up to accept SSL connections, both clients successfully connected and communicated using SSL.