public class MQMessages
extends java.lang.Object
Constructor and Description |
---|
MQMessages()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage(java.lang.String hostname,
java.lang.String queueManagerName,
java.lang.String channel,
java.lang.Integer port,
java.lang.String queueName)
Retrieves the message from the MQQueueManager.
|
void |
putMessage(java.lang.String messageContent,
java.lang.String hostname,
java.lang.String queueManagerName,
java.lang.String channel,
java.lang.Integer port,
java.lang.String queueName)
Adds a message to the MQQueueManager.
|
public java.lang.String getMessage(java.lang.String hostname, java.lang.String queueManagerName, java.lang.String channel, java.lang.Integer port, java.lang.String queueName) throws com.ibm.mq.MQException, java.io.IOException
hostname
- The name of the host where the MQQueueManager is running.
This value is used to set the com.ibm.mq.MQC.HOST_NAME_PROPERTY
property when creating the MQQueueManager.queueManagerName
- the name for the queue manager.
This value is used when creating the MQQueueManager.channel
- the name of the channel where the MQQueueManager is running.
This value is used to set the com.ibm.mq.MQC.CHANNEL_PROPERTY
property when creating the MQQueueManager.port
- the name of the port where the MQQueueManager is running.
This value is used to set the com.ibm.mq.MQC.PORT_PROPERTY
property when creating the MQQueueManager.queueName
- the name of the queue to which the message should be added.com.ibm.mq.MQException
java.io.IOException
public void putMessage(java.lang.String messageContent, java.lang.String hostname, java.lang.String queueManagerName, java.lang.String channel, java.lang.Integer port, java.lang.String queueName) throws com.ibm.mq.MQException, java.io.IOException
messageContent
- the content of the message to be added to the specified queuehostname
- The name of the host where the MQQueueManager is running.
This value is used to set the com.ibm.mq.MQC.HOST_NAME_PROPERTY
property when creating the MQQueueManager.queueManagerName
- the name for the queue manager.
This value is used when creating the MQQueueManager.channel
- the name of the channel where the MQQueueManager is running.
This value is used to set the com.ibm.mq.MQC.CHANNEL_PROPERTY
property when creating the MQQueueManager.port
- the name of the port where the MQQueueManager is running.
This value is used to set the com.ibm.mq.MQC.PORT_PROPERTY
property when creating the MQQueueManager.queueName
- the name of the queue to which the message should be added.com.ibm.mq.MQException
java.io.IOException