You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by namita <na...@gmail.com> on 2013/02/25 03:20:41 UTC

Camel XMPP routing

I am trying to load the routes from xml file in camel.I am getting exception
SASL authentication failed.My code is:
for route-context.xml:

<routes xmlns="http://camel.apache.org/schema/spring">
    
    
    <route id="bar">
        <from
uri="xmpp://namita@ingbtcpic5nb99e/?room=TestNode77@conference.ingbtcpic5nb99e;password=saimai"/>
       
        <to uri="bean:DataProcess"/>
    </route>

    
</routes>









--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XMPP-routing-tp5728071.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel XMPP routing

Posted by Willem jiang <wi...@gmail.com>.
Hi,
There are some xml escape characters you show care when you setup the Camel route with XML.  
You should use the &amp instead of & in the xml.










--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Monday, February 25, 2013 at 1:34 PM, namita wrote:

> I am able to access if I put these routes in my java class.But If I try to
> load from xml then it creates problem:
> This one is working:
> from("xmpp://namita@ingbtcpic5nb99e:5222/?room=TestNode77@conference.ingbtcpic5nb99e (mailto:TestNode77@conference.ingbtcpic5nb99e)&password=saimai").
> bean(new DataProcess()).
> to("xmpp://vik@ingbtcpic5nb99e:5222/?room=TestNode77@conference.ingbtcpic5nb99e (mailto:TestNode77@conference.ingbtcpic5nb99e)&password=saimai");  
>  
>  
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-XMPP-routing-tp5728071p5728077.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).




Re: Camel XMPP routing

Posted by namita <na...@gmail.com>.
I am able to access if I put these routes in my java class.But If I try to
load from xml then it creates problem:
This one is working:
from("xmpp://namita@ingbtcpic5nb99e:5222/?room=TestNode77@conference.ingbtcpic5nb99e&password=saimai").
bean(new DataProcess()).
to("xmpp://vik@ingbtcpic5nb99e:5222/?room=TestNode77@conference.ingbtcpic5nb99e&password=saimai"); 





--
View this message in context: http://camel.465427.n5.nabble.com/Camel-XMPP-routing-tp5728071p5728077.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel XMPP routing

Posted by Willem jiang <wi...@gmail.com>.
Can you access the XMPP server with other client ?
It looks like you are hitting some kind authentication issue.


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Monday, February 25, 2013 at 10:20 AM, namita wrote:

> I am trying to load the routes from xml file in camel.I am getting exception
> SASL authentication failed.My code is:
> for route-context.xml:
>  
> <routes xmlns="http://camel.apache.org/schema/spring">
>  
>  
> <route id="bar">
> <from
> uri="xmpp://namita@ingbtcpic5nb99e/?room=TestNode77@conference.ingbtcpic5nb99e (mailto:TestNode77@conference.ingbtcpic5nb99e);password=saimai"/>
>  
> <to uri="bean:DataProcess"/>
> </route>
>  
> </routes>
>  
>  
>  
>  
>  
>  
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-XMPP-routing-tp5728071.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).