In order to get the offline message, you need to download the latest source code.
However, the latest source code is NOT official release; you need to TAKE YOUR OWN RISK.
Use the following statement to set the messenger Supported Protocol greater than 13:
Hi ,
can anyone please he how to receive offline messages using jml api.
In order to get the offline message, you need to download the latest source code.
However, the latest source code is NOT official release; you need to TAKE YOUR OWN RISK.
Use the following statement to set the messenger Supported Protocol greater than 13:
messenger.setSupportedProtocol(new MsnProtocol[] { MsnProtocol.MSNP14 });
Call the following method to get the offline message.
messenger.retreiveOfflineMessages();
Then it will call the MsnAdapter.offlineMessageReceived function.
You will receive 4 parameter
1)Message body
2)The content type of the message
3)The encoding of the message
4)Who sent this message.
Please refere the following source code file for detail.
net\sf\jml\protocol\soap\OIM.java(line 204)
net\sf\jml\impl\BasicMessenger.java(line 242)