Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 50520 invoked from network); 5 Oct 2010 04:53:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Oct 2010 04:53:06 -0000 Received: (qmail 84405 invoked by uid 500); 5 Oct 2010 04:53:06 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 84267 invoked by uid 500); 5 Oct 2010 04:53:02 -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 84259 invoked by uid 500); 5 Oct 2010 04:53:02 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 84256 invoked by uid 99); 5 Oct 2010 04:53:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Oct 2010 04:53:01 +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 04:53:00 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o954qeXB009142 for ; Tue, 5 Oct 2010 04:52:40 GMT Message-ID: <5323984.43341286254360382.JavaMail.jira@thor> Date: Tue, 5 Oct 2010 00:52:40 -0400 (EDT) From: "Chandra Prakash Joshi (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (CAMEL-3195) Allow camel to send custom xmpp packet (Presence packet or PubSub packet) to a xmpp destination MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c Allow camel to send custom xmpp packet (Presence packet or PubSub packet) to a xmpp destination ----------------------------------------------------------------------------------------------- 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.