[ https://issues.apache.org/jira/browse/CAMEL-3195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037749#comment-13037749 ]
Chandra Prakash Joshi commented on CAMEL-3195: ---------------------------------------------- @Preben I didn't mean that nodes need to be created dynamically. It's just that the publisher(camel route in this case) doesn't know which node to publish to until he receives a message from JMS queue (this message contains a header where pubsub node id/name is defined). If I understand your soultion correctly, one camel route will publish updates only to pubsub node defined in "node" property (e.g. "node=testnode2"). Whereas the situation that I described needs one route that can publish to multiple pubsub nodes > 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-v3.patch, camel-xmpp.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