Sun Java System Message Queue 4.3 Administration Guide

Step 6 (HTTP and HTTPS): Configuring a Connection

To make HTTP/HTTPS connections to a broker, a client application needs an appropriately configured connection factory administered object. Before configuring the connection factory, clients wishing to use secure HTTPS connections must also have access to SSL libraries provided by the Java Secure Socket Extension (JSSE) and must obtain a trusted root certificate.

Installing a Root Certificate (HTTPS Only)


ProcedureInstalling a Root Certificate in the Trust Store

  1. Import the root certificate.

    Execute the command

       JRE_HOME/bin/keytool  -import  -trustcacerts
                             -alias certAlias  -file certFile
                             -keystore trustStoreFile


  2. Confirm that you trust the certificate.

    Answer YES to the question Trust this certificate?

  3. Identify the trust store to the client application.



Configuring the Connection Factory (HTTP and HTTPS)







Using a Single Servlet to Access Multiple Brokers (HTTP and HTTPS)

It is not necessary to configure multiple application or Web servers and tunnel servlets in order to access multiple brokers; you can share a single server instance and tunnel servlet among them. To do this, you must configure the imqAddressList connection factory attribute as follows:





To check that you have entered the correct values for brokerHostName and instanceName, generate a status report for the HTTP/HTTPS tunnel servlet by accessing the servlet URL from a browser:


The report lists all brokers being accessed by the servlet, as shown in Example C–1.

Example C–1 Tunnel Servlet Status Report

HTTP tunnel servlet ready.
Accepting secured connections from brokers on port : 7675
Total available brokers = 2
Broker List :

Using an HTTP Proxy
