Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 51824 invoked from network); 5 Oct 2010 05:03:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 05:03:11 -0000 Received: (qmail 89476 invoked by uid 500); 5 Oct 2010 05:03:11 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 89400 invoked by uid 500); 5 Oct 2010 05:03:09 -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 89392 invoked by uid 500); 5 Oct 2010 05:03:08 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 89389 invoked by uid 99); 5 Oct 2010 05:03:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 05:03:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 05:03:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9552hfQ009359 for ; Tue, 5 Oct 2010 05:02:43 GMT Message-ID: <26233144.43371286254963359.JavaMail.jira@thor> Date: Tue, 5 Oct 2010 01:02:43 -0400 (EDT) From: "Chandra Prakash Joshi (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-3195) Allow camel to send custom xmpp Presence/PubSub packet to a xmpp endpoint In-Reply-To: <5323984.43341286254360382.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-3195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chandra Prakash Joshi updated CAMEL-3195: ----------------------------------------- Summary: Allow camel to send custom xmpp Presence/PubSub packet to a xmpp endpoint (was: Allow camel to send custom xmpp packet (Presence packet or PubSub packet) to a xmpp destination) > Allow camel to send custom xmpp Presence/PubSub packet to a xmpp endpoint > ------------------------------------------------------------------------- > > Key: CAMEL-3195 > URL: https://issues.apache.org/activemq/browse/CAMEL-3195 > Project: Apache Camel > Issue Type: New Feature > Components: camel-xmpp > Reporter: Chandra Prakash Joshi > > 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. - You can reply to this email to add a comment to the issue online.