450 A B2B Solution using WebSphere Business Integration and WebSphere Business Connection
* @see #setQName
*/
public java.lang.String getQName() {
return fieldQName;
}
public void mPut(MQQueueManager qMgr, MQQueue q) {
try {
//Define a MQ Message Buffer
MQMessage mBuf = new MQMessage();
//Create Put Message Options
MQPutMessageOptions pmo = new MQPutMessageOptions();
//Set Put message Option
pmo.options = MQC.MQPMO_NONE;
//Reset the Message Buffer
mBuf.clearMessage();
//Set correlationId to the default
mBuf.correlationId = MQC.MQCI_NONE;
//Set messageId to the default
mBuf.messageId = MQC.MQMI_NONE;
//Set the Actual Message
mBuf.writeBytes(getMsg());
//Put the message on the queue
q.put(mBuf, pmo);
} catch (MQException ex) {
System.out.println(
"MQ exception occurr ...