This section describes how to run a set of examples that verify the successful installation of a WebSphere MQ Everyplace development kit.
Once you have installed WebSphere MQ Everyplace you can use the following procedures to run a set of examples that determine whether the installation of the development kit was successful.
CreateExampleQM.bat <JDK>
CreateExampleQM
to create an example queue manager called ExampleQM.
Part of the creation process sets up directories to hold queue manager configuration information and queues. The example uses a directory called ExampleQM that is relative to the current directory. Within this directory are two other directories:
Once you have created a queue manager you can start it and use it in applications. You can use the batch file ExamplesMQeClientTest.bat or the shell script ExamplesMQeClientTest to run some of the simple application examples.
The batch file runs examples.application.Example1 by default. This example puts a test message to queue manager ExampleQM and then gets the message from the same queue manager. If the two messages match, the application ran successfully.
There are a set of applications in the examples.application package that demonstrate different features of WebSphere MQ Everyplace. You can run these examples as follows:
ExamplesMQeClientTest <JDK> <ExampleNo>
ExamplesMQeClientTest <ExampleNo>
where ExampleNo is the suffix of the example. This can range from 1 to 6.
When a queue manager is no longer required you can delete it. To delete the example queue manager ExampleQM:
DeleteExampleQM.bat <JDK>
DeleteExampleQM
.
Once you have deleted a queue manager you cannot start it.
Once you have installed WebSphere MQ Everyplace you can run the examples, from the WebSphere MQ Everyplace C Programming Reference, to determines whether the installation of the development kit was successful.