Writing java classes to perform queue and topic operations in IBM WebSphere MQ

A WebSphere MQ queue is a named object on which applications can put messages, and from which applications can get messages.Messages are stored on a queue, so that if the putting application is expecting a reply to its message, it is free to do other work while waiting for that reply.Before a message can be put on a queue, the queue must have already been created. A queue is owned by a queue manager, and that queue manager can own many queues. However, each queue must have a name that is unique within that queue manager.Following you get an example of opening a queue to put message. MQQueueManager queueManager; //initialize the queue manager here MQQueue queue = queueManager.accessQueue("myqueue", CMQC.MQOO_OUTPUT); MQMessage mqMessage = new MQMessage(); //prepare message here queue.put(mqMessage); queue.close(); Below you get an example of opening a queue to get messages. MQQueue queue = queueManager.accessQueue("myqueue", CMQC.MQRC_READ_AHEAD_M...