|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectteamworks.MQMessages
public class MQMessages
This MQMessages class can be used to add messages using the MQQueueManager class.
Use this class only if using IBM MQ.
MQMessages does not support the Secure Sockets Layer (SSL).
Constructor Summary | |
---|---|
MQMessages()
Default constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MQMessages()
Method Detail |
---|
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
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |