Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.5
    • Fix Version/s: 2.1 RC1
    • Component/s: Adapters
    • Labels:
      None

      Description

      Provide support for mapping custom xmpp headers.

      At the moment of writing, there is no way to pass custom headers from an org.springframework.integration.Message to an outgoing org.jivesoftware.smack.packet.Message.

      The ChatMessageSendingMessageHandler only copies the CHAT_THREAD_ID and CHAT_TO headers to any outgoing xmpp message. I suggest to copy all other headers to the properties of a smack message, eg.

      mySmackmessage.setProperty( MyCustomMessageHeaders.FOO_1, "foo_1");
      

      This is further discussed in depth at http://forum.springsource.org/showthread.php?113642-Howto-override-the-ChatMessageSendingMessageHandler-in-the-xmpp-namespace&goto=newpost

        Attachments

          Activity

            People

            • Assignee:
              oleg.zhurakousky@springsource.com Oleg Zhurakousky
              Reporter:
              davidcyp davidcyp
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: