Gets the message text from the last received message.
Jms.bdh
JmsGetMessageText(): string;
Returns the text sent with the message.
transaction TExampleSendReceiveTextMessage var sRet : number; sMessage : string; begin JmsSendTextMessage("Welcome1!", csQueue); sRet := JmsReceiveMessage(csQueue, -1); if (sRet = JMS_MSG_TYPE_TEXT) then sMessage := JmsGetMessageText(); else RepMessage("TextMessage expected!", SEVERITY_ERROR); end; end TExampleSendReceiveTextMessage;
JmsSample.bdf, JmsSample.java