Show TOC Start of Content Area

This graphic is explained in the accompanying text Processing the Received Messages Locate the document in its SAP Library structure

Processing Bytes Message

This graphic is explained in the accompanying text

// create a byte array with the received data

byte[] receivedBytes;

// create an integer object to receive the data with that specified length:

int dataLength;

// get the data from the Bytes Message:

dataLength = bytesMessage.readBytes(receivedBytes);

Processing Map Message

This graphic is explained in the accompanying text

String stringData;

long longData;

stringData = mapMessage.getString(“message”);

longData = mapMessage.getLong(“long”);

Processing Object Message

This graphic is explained in the accompanying text

String stringValue;

long longValue;

Class_Implementing_Serialaizable cis = new Class_Implementing_Serialaizable();

cis =  objectMessage.getObject();

stringValue = cis.getString();

longValue = cis.getLong();

Processing Stream Message

This graphic is explained in the accompanying text

String stringValue;

long longValue;

stringValue = streamMessage.readString();

longValue = streamMessage.readLong();

Processing Text Message

This graphic is explained in the accompanying text

String text;

text = textMessage.getText();

 

End of Content Area