Menu

revieve offline message

Help
2009-05-21
2013-04-29
  • Raparthi sushma

    Raparthi sushma - 2009-05-21

    Hi ,
    can anyone please he how to receive offline messages using jml api.

     
    • ronaldo

      ronaldo - 2009-06-04

      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)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.