camel-issues mailing list archives

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


martin scharm commented on CAMEL-9847:

Just for references:
I stumbled upon this issue a week ago and created CAMEL-9804. But after I didn't receive a
reply on the mailing list (,
I started to investigate the issue myself and created the above mentioned patch and pull request.

> XMPP: private chat response issue
> ---------------------------------
>                 Key: CAMEL-9847
>                 URL:
>             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
> {code:java}
> String participant = exchange.getIn().getHeader(XmppConstants.TO, String.class);
> {code}
> (see
> 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
> {code:java}
> message.setTo(participant);
> {code}
> (see
> 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. Based on
that I created a pull request on github:

This message was sent by Atlassian JIRA

View raw message