Menu

offline messages receive date

ronaldo
2009-06-03
2013-04-29
  • ronaldo

    ronaldo - 2009-06-03

    Is it possible to get the receive date of the offline message?

    thank you

     
    • Raparthi sushma

      Raparthi sushma - 2009-06-04

      Hi,
      Could you please tell me how are you are able to get the offline message .Using jml-1.0bfull.jar i am not able to get the offline messge . Kindly help me.

      Thanks and Regards,
      Sushma

       
    • 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)

       
    • Raparthi sushma

      Raparthi sushma - 2009-06-06

      Hi,
      Thanks for your reply . I solved the problem of recieving offline message.
      For the date and time of offline message i think  passing the date and time in OfflineMessageRecieved() in MessageListener that can be done by modifying OIM

       

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.