public interface MqResource extends Resource
MqResource
interface represents a message to be read and/or written to an MQ Series message queue.
Modifier and Type | Method and Description |
---|---|
int |
read()
Reads a message from the MQSeries queue identified by the MQ resource and populates mapped form fields.
|
void |
write()
Constructs a message from mapped form field values and writes the message to the MQSeries queue identified by the MQ resource.
|
int |
write(boolean wait)
Constructs a message from mapped form field values and writes the message to the MQSeries queue identified by the MQ resource.
|
getElementName, getElementType
int read() throws com.ebasetech.xi.exceptions.FormRuntimeException
com.ebasetech.xi.exceptions.FormRuntimeException
- if any error occurs during executionvoid write() throws com.ebasetech.xi.exceptions.FormRuntimeException
com.ebasetech.xi.exceptions.FormRuntimeException
- if any error occurs during executionwrite(boolean)
int write(boolean wait) throws com.ebasetech.xi.exceptions.FormRuntimeException
If parameter wait
is true, waits for a reply to arrive on the reply queue message specified in
the MQ resource and then issues a read command to this queue.
wait
- com.ebasetech.xi.exceptions.FormRuntimeException
- if any error occurs during executionwrite()