Interaction with a queue manager (examples.application)

This package contains a set of examples that demonstrate various ways to interact with a queue manager. These include putting a message to and getting a message from a queue. All the examples can be used with either a local queue manager or a remote queue manager. Before you can use any of these applications, the queue managers that are to be used must be created. You can use the CreateExampleQM.bat batch file on Windows®, or the CreateExampleQM shell script on UNIX®, to create queue managers ExampleQM. For more information, see Verifying your installation).

Example1
Simple put and get of a message.
Example2
Put several messages and then get the second one using a match field.
Example3
Use a message listener to detect when new messages arrive.
Example5
Lock messages then get, unlock, and delete them.
Example6
Simple put and get of a message using assured message delivery.
Example7
Simple put and get of a message through a Websphere Everyplace® proxy.
ExampleBase
The base class that all application examples inherit from.
These examples can be run as follows:
Windows
Using batch file ExamplesMQeClientTest.bat
ExamplesMQeClientTest <JDK> <example no> 
    <remoteQMgrName> <localQMgr ini file>
UNIX
Using shell script ExamplesMQeClientTest
ExamplesMQeClientTest  <example no> 
<remoteQMgrName> <localQMgr ini file>
where
<JDK>
is the name of the Java™ environment. The default is IBM®
Note: This parameter is not used on UNIX.
<example no>
is the number of the example to run (suffix of the name of the example). The default is 1 (Example1).
<remoteQMgrName>
is the name of the queue manager that the application should work with. This can be the name of the local or a remote queue manager. If it is a remote queue manager, a connection must be configured that defines how the local queue manager can communicate with the remote queue manager.

By default the local queue manager is used, as defined in ExamplesMQeClient.ini.

<localQMgrIniFile>
is an ini file containing startup parameters for a local queue manager. By default ExamplesMQeClient.ini is used.

For more details on how to write applications that interact with a queue manager see Queue manager operations.


Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.