camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "martin scharm (JIRA)" <>
Subject [jira] [Created] (CAMEL-9847) XMPP: private chat response issue
Date Sat, 09 Apr 2016 10:40:25 GMT
martin scharm created CAMEL-9847:

             Summary: XMPP: private chat response issue
                 Key: CAMEL-9847
             Project: Camel
          Issue Type: Bug
          Components: camel-xmpp
    Affects Versions: 2.17.0, 2.18.0
         Environment: jdk1.8.0_65
            Reporter: martin scharm

There is an issue in the {{org.apache.camel.component.xmpp.XmppPrivateChatProducer}} that
prevents responding to XMPP private chat messages. The participant's address is obtained as

String participant = exchange.getIn().getHeader(XmppConstants.TO, String.class);

In case of an incoming message that is the camel instance itself, not the participant. However,
from that it creates the outgoing message just as


Thus, responding to a chat message always results in a message to itself and not the chat's
other participant. 

I fixed the issue in
by using the {{endpoint.getParticipant()}} to set the receipient of the message.

This message was sent by Atlassian JIRA

View raw message