JmsGetMessageText Function

Action

Gets the message text from the last received message.

Include file

Jms.bdh

Syntax

JmsGetMessageText(): string;

Return value

Returns the text sent with the message.

Example

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;  

Sample scripts

JmsSample.bdf, JmsSample.java