Verify the TCP/IP client

 


Overview

WebSphere MQ JMS bundles an installation verification applet, test.html, which can be used verify TCP/IP connected client mode of WebSphere MQ JMS.

The applet connects to a queue manager, exercises WebSphere MQ calls, and produces diagnostic messages if there are any failures.

Before running, verify the queue manager can accept client connections.

Normal Java security settings cause the appletviewer or browser to ignore your system CLASSPATH, so the WebSphere MQ base Java and WebSphere MQ JMS libraries must be present in the same location as the applet class file.

Running from a web server (in appletviewer or in a browser)...

Invoke the applet using a command line like the following:
  
appletviewer http://www.hostname.com/jmsapplet/test.html

...or by pointing your Java 1.3 enabled browser at this Web page. Change the string <web.server.host/jmsapplet> as appropriate to the URL of the Web server you are using.

Running in appletviewer from the local machine:
Invoke the applet using a command line like the following:
  appletviewer test.html

Remember that the WebSphere MQ base Java and WebSphere MQ JMS libraries must be present in the same local directory as the applet class file. Also, in this case, the applet might connect only to queue managers on the local machine.

Running the applet as an application:
Use a command line like the following:
  java JMSTestApplet

The JMS sample applet contains a main method that allows the applet to run as a standalone Java application.

This option requires the WebSphere MQ base Java and WebSphere MQ JMS libraries to be present in the system CLASSPATH, as for your own WebSphere MQ JMS applications. It allows you to connect to any host and queue manager to which you have TCP/IP access.

 

Tracing the sample as an application

To trace the sample as an application, alter the command line parameters as shown below, in the same way as you would trace your own JMS applications:

  java -DMQJMS_TRACE_LEVEL=on JMSTestApplet

More details can be found in Tracing programs.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.