Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 2367 invoked from network); 22 Feb 2011 07:07:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2011 07:07:10 -0000 Received: (qmail 1121 invoked by uid 500); 22 Feb 2011 07:07:10 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 967 invoked by uid 500); 22 Feb 2011 07:07:08 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 99716 invoked by uid 99); 22 Feb 2011 07:07:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 07:07:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 07:07:00 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6D4C71B170A for ; Tue, 22 Feb 2011 07:06:39 +0000 (UTC) Date: Tue, 22 Feb 2011 07:06:39 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <42453212.7650.1298358399444.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (CAMEL-3195) Allow camel to send custom xmpp Presence/PubSub packet to a xmpp endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-3195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-3195: ------------------------------- Fix Version/s: (was: 2.7.0) 2.8.0 > Allow camel to send custom xmpp Presence/PubSub packet to a xmpp endpoint > ------------------------------------------------------------------------- > > Key: CAMEL-3195 > URL: https://issues.apache.org/jira/browse/CAMEL-3195 > Project: Camel > Issue Type: New Feature > Components: camel-xmpp > Reporter: Chandra Prakash Joshi > Fix For: 2.8.0 > > Attachments: Camel-xmpp-pubsub-presence-v2.patch > > > Claus Ibsen suggested that I should create a ticket for this new feature ([http://stackoverflow.com/questions/3645159/can-apache-camel-send-a-xmpp-presence-pubsub-packet-to-an-xmpp-endpoint]) > I need to receive an update published to a JMS topic, convert it to a XMPP packet (Presence packet or PubSub packet) and route it to an XMPP endpoint. > I am using ActiveMQ as JMS provider and Apache camel as routing engine. given below is my route in Camel (to make things simple I read from system.in instead of a jms topic): > {code:java} > from("stream:in?promptMessage=Enter something:").process( new Processor(){ > public void process(Exchange exchange) throws Exception { > System.out.println("sending presence with message: " + exchange.getIn().getBody().toString()); > Presence p = new Presence(Type.available, exchange.getIn().getBody().toString(), 5, Mode.chat); > exchange.getIn().setBody(p); > } > }).to("xmpp:user1@banl080161?password=pass1"); > {code} > Idea is that user1@banl080161 should be able to send a custome presence packet having status as given from system.in. I am reading from system.in, making a presence packet, setting this packet in the exchange body and send this presence on behalf of user1@banl080161. > Problem: nothing gets sent to XMPP server, I use PSI to see packets coming from user1@banl080161, user1@banl080161 comes online for sure but no custom presence message is received. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira