|
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.application.Example1
Extends ExampleBase, Application example base.
Simple put message / get message example.
Example showing how to:
. start a queue manager (Example1QM) . put a message to its systems default queue . get that message.
The example relies on the queue containing no messages at the time when the example is run.
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 | |
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.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
queueManagerName
- java.lang.String
java.lang.Exception
public Example1(java.lang.String qMgrName, java.lang.String localQMgrIniFile) throws java.lang.Exception
Constructor that starts a queue manager with paramters from an ini file. This queue manager is then used as the access point for interacting with the same or different queue managers.
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 |
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
Starts the application.
java.lang.Exception
public void setParms()
setParms
in class ExampleBase
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |