public MQQueue AccessQueue(String queueName, int openOptions, String queueManagerName, String dynamicQueueName, String alternateUserId)
Throws MQException.
Establishes access to a WebSphere MQ queue on this queue manager to get or browse messages, put messages, inquire about the attributes of the queue or set the attributes of the queue.
If the queue named is a model queue, a dynamic local queue is created. The name of the created queue can be determined from the name attribute of the returned MQQueue object.
Parameters
If more than one option is required, the values can be added together or combined using the bitwise OR operator. See the WebSphere MQ Application Programming Reference for a fuller description of these options.
Throws MQException if the open fails.
public MQQueue AccessQueue(String queueName, int openOptions)
Throws MQException if you call this method after disconnecting from the queue manager.
Parameters
See the description of MQQueueManager.AccessQueue for details of the parameters.
For this version of the method, queueManagerName, dynamicQueueName, and alternateUserId are set to "".
Throws MQException if the open fails.
public void Backout()
Throws MQException.
Calling this method indicates to the queue manager that all the message gets and puts that have occurred since the last syncpoint are to be backed out. Messages put as part of a unit of work (with the MQC.MQPMO_SYNCPOINT flag set in the options field of MQPutMessageOptions) are deleted; messages retrieved as part of a unit of work (with the MQC.MQGMO_SYNCPOINT flag set in the options field of MQGetMessageOptions) are reinstated on the queue.
See also the description of the commit method.
Throws MQException.
This method is supported only by the WebSphere MQ classes for .NET in server bindings mode. It signals to the queue manager that a new unit of work is starting.
Do not use this method for applications that use local one-phase transactions.
public void Commit()
Throws MQException.
Calling this method indicates to the queue manager that the application has reached a syncpoint, and that all the message gets and puts that have occurred since the last syncpoint are to be made permanent. Messages put as part of a unit of work (with the MQC.MQPMO_SYNCPOINT flag set in the options field of MQPutMessageOptions) are made available to other applications. Messages retrieved as part of a unit of work (with the MQC.MQGMO_SYNCPOINT flag set in the options field of MQGetMessageOptions) are deleted.
See also the description of the backout method.
public void Disconnect()
Throws MQException.
Terminates the connection to the queue manager. All open queues and processes accessed by this queue manager are closed, and become unusable. When you have disconnected from a queue manager, the only way to reconnect is to create a new MQQueueManager object.
Normally, any work performed as part of a unit of work is committed. However, if this connection is managed by a ConnectionManager, rather than an MQConnectionManager, the unit of work might be rolled back.
public void Put(String qName, String qmName, MQMessage msg, MQPutMessageOptions pmo, String altUserId)Throws MQException.
Places a single message onto a queue without having to create an MQQueue object first.
The qName (queue name) and qmName (queue manager name) parameters identify where the message is placed. If the queue is a model queue, an MQException is thrown.
In other respects, this method behaves like the put method on the MQQueue object. It is an implementation of the MQPUT1 MQI call. See MQQueue.Put.
Parameters
public void Put(String qName, String qmName, MQMessage msg, MQPutMessageOptions pmo)Throws MQException.
Places a single message onto a queue without having to create an MQQueue object first.
This version of the method allows you to omit the altUserid parameter. See the fully-specified method (MQQueueManager.Put) for details of the parameters.
public void Put(String qName, String qmName, MQMessage msg)Throws MQException.
Places a single message onto a queue without having to create an MQQueue object first.
This version of the method allows you to omit the put message options (pmo) and altUserid parameters. See the fully-specified method (MQQueueManager.Put) for details of the parameters.
public void Put(String qName, MQMessage msg, MQPutMessageOptions pmo)Throws MQException.
Places a single message onto a queue without having to create an MQQueue object first.
This version of the method allows you to omit the qmName and altUserid parameters. See the fully-specified method (MQQueueManager.Put) for details of the parameters.
public void Put(String qName, MQMessage msg)Throws MQException.
Places a single message onto a queue without having to create an MQQueue object first.
This version of the method allows you to omit the qmName, put message options (pmo), and altUserid parameters. See the fully-specified method (MQQueueManager.Put) for details of the parameters.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzav0464 |