|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.MQe | +--examples.application.ExampleBase | +--examples.administration.simple.ExampleAdminBase | +--examples.administration.simple.Example1
Creates and deletes a queue. Example showing how to:
. start a queue manager . create a new queue . put a message to it . delete the queue (which will fail as a message exists) . get a message from it . delete the queue
Field Summary | |
static short[] |
version
|
Fields inherited from class examples.application.ExampleBase |
client, example, localQMgrName, msgData, msgField, myQM, qMgrName, queueName, startupIni |
Constructor Summary | |
Example1()
Constructor that uses the default queue manager. |
|
Example1(java.lang.String queueManagerName)
Constructor that uses the queue manager passed in on the command line. |
|
Example1(java.lang.String qMgrName,
java.lang.String localQMgrIniFile)
Constructor that starts a queue manager with paramters from an ini file. |
Method Summary | |
protected void |
createQueue()
Creates a new queue. |
protected void |
deleteQueue()
Deletes a queue. |
void |
doIt()
All work is performed in this method. |
static void |
main(java.lang.String[] args)
Starts the application. |
void |
setParms()
Over-ride default parameter settings. |
Methods inherited from class examples.administration.simple.ExampleAdminBase |
checkReply, primeAdminMsg, waitForReply |
Methods inherited from class examples.application.ExampleBase |
accessLocalQMgr, close, emptyQueue |
Methods inherited from class com.ibm.mqe.MQe |
abbreviate, alias, asciiToByte, byteToAscii, byteToHex, byteToHex, byteToInt, byteToLong, byteToShort, byteToUnicode, fileSeparator, getEventLogHandler, hexToAscii, hexToByte, intToByte, isCLDC, loadClass, loadObject, log, setEventLogHandler, setLoader, sliceByteArray, type, unicodeToByte, uniqueValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static short[] version
Constructor Detail |
public Example1() throws java.lang.Exception
java.lang.Exception
public Example1(java.lang.String queueManagerName) throws java.lang.Exception
java.lang.Exception
public Example1(java.lang.String qMgrName, java.lang.String localQMgrIniFile) throws java.lang.Exception
qMgrName
- java.lang.String, queue manager name.
The name of the queue manager to interact with.
The queue manager can be a local or a remote queue
manager.
java.lang.Exception
Method Detail |
protected void createQueue() throws java.lang.Exception
java.lang.Exception
protected void deleteQueue() throws java.lang.Exception
java.lang.Exception
public void doIt() throws java.lang.Exception
doIt
in class ExampleBase
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public void setParms()
setParms
in class ExampleAdminBase
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |