camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chandra Prakash Joshi (JIRA)" <>
Subject [jira] Created: (CAMEL-3195) Allow camel to send custom xmpp packet (Presence packet or PubSub packet) to a xmpp destination
Date Tue, 05 Oct 2010 04:52:40 GMT
Allow camel to send custom xmpp packet (Presence packet or PubSub packet) to a xmpp destination

                 Key: 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 ([])

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 instead of a jms topic):

     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(),

Idea is that user1@banl080161 should be able to send a custome presence packet having status
as given from I am reading from, 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.

View raw message