You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Garbage <Ga...@gmx.de> on 2013/06/25 21:46:19 UTC

Re: xmpp uri in camel / naming a JID resource [solved]

I reread the documentation on the XMPP component
(http://camel.apache.org/xmpp.html) and rearranged the url from an earlier
attempt. It now works, I can use one account and vary it by adding a
resource.

Here you can find an example:

from("stream:in?promptMessage=sachwas:").to("xmpp:installation1@xmpp.srv.net?resource=app&password=yes&participant=installation1@xmpp.srv.net/device1");

This logs on the user as "installation1@xmpp.srv.net/app" and has it send
the entered message to the same user but with a different active resource
("installation1@xmpp.srv.net/device").
Now I can proceed and add marshalling and remoting ...





--
View this message in context: http://camel.465427.n5.nabble.com/xmpp-uri-in-camel-naming-a-hid-resource-tp5734609p5734766.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: xmpp uri in camel / naming a JID resource [solved]

Posted by Willem jiang <wi...@gmail.com>.
Thanks for sharing this with us :)


--  
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 Wednesday, June 26, 2013 at 3:46 AM, Garbage wrote:

> I reread the documentation on the XMPP component
> (http://camel.apache.org/xmpp.html) and rearranged the url from an earlier
> attempt. It now works, I can use one account and vary it by adding a
> resource.
>  
> Here you can find an example:
>  
> from("stream:in?promptMessage=sachwas:").to("xmpp:installation1@xmpp.srv.net?resource=app&password=yes&participant=installation1@xmpp.srv.net/device1 (mailto:installation1@xmpp.srv.net?resource=app&password=yes&participant=installation1@xmpp.srv.net/device1)");
>  
> This logs on the user as "installation1@xmpp.srv.net (mailto:installation1@xmpp.srv.net)/app" and has it send
> the entered message to the same user but with a different active resource
> ("installation1@xmpp.srv.net (mailto:installation1@xmpp.srv.net)/device").
> Now I can proceed and add marshalling and remoting ...
>  
>  
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/xmpp-uri-in-camel-naming-a-hid-resource-tp5734609p5734766.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).