You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tijs <t....@chello.nl> on 2007/11/30 16:29:50 UTC
XMPP send instant message
I have set-up a simple example with Camel 1.3 that listens for incoming
messages from XMPP and then should sent a message back to XMPP. I use the
following configuration:
<route>
<from uri="xmpp://servicemix@localhost/?password=servicemix"/>
<to uri="xmpp://test2@localhost/?password=test2&participant=test"/>
</route>
A message that is sent to user servicemix is received, but the message is
never sent to user test. I have debugged the code and in the
XmppPrivateChatProducer class the message is actually sent without any
errors. Any help is appreciated!
Thanks,
Tijs
--
View this message in context: http://www.nabble.com/XMPP-send-instant-message-tf4916588s22882.html#a14072390
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: AW: XMPP send instant message
Posted by Tijs <t....@chello.nl>.
Hi,
I just tested my example with the latest snapshot again (1.3) and it still
doesn't work.
<camelContext useJmx="true"
xmlns="http://activemq.apache.org/camel/schema/spring">
<route>
<from uri="xmpp://test@localhost/?password=test"/>
<to uri="xmpp://test2@localhost/?login=false&participant=test"/>
</route>
</camelContext>
The test user is online when I run this example, so that's fine. But the
message arriving at test is never sent to the test2 user.
I would also like a tested example, or feedback that the XMPP transport is
not yet fully working.
Tijs
Robert Thullner wrote:
>
> Sorry, I did not find this method in the Camel XmppEndpoint source file.
> Which version of Camel did you use?
> Is there some guide how to send XMPP messges with camel?
>
> Thanks
> Robert
>
>
> -----Ursprüngliche Nachricht-----
> Von: Kevin k [mailto:kevin.kalmbach@gmail.com]
> Gesendet: Freitag, 11. Jänner 2008 21:33
> An: camel-user@activemq.apache.org
> Betreff: Re: XMPP send instant message
>
>
> Dont know if this helps, but
> I had this problem too, looking at XmppEndpoint.java, when a packet is
> received, the following code is run (inside of the processPacket method):
>
> InOnly exchange = getExchangeFactory().createInOnlyExchange();
> NormalizedMessage in = exchange.createMessage();
> exchange.setInMessage(in);
> marshaler.toNMS(in, packet);
> logger.debug("Exchange: " + exchange);
> //send(exchange);
>
> (Note that the last line send(exchange) is commented out. It looks like
> this is disabled on purpose.
>
>
>
>
> Tijs wrote:
>
> --
> View this message in context:
> http://www.nabble.com/XMPP-send-instant-message-tp14072390s22882p14764216.ht
> ml
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
--
View this message in context: http://www.nabble.com/XMPP-send-instant-message-tp14072390s22882p14784044.html
Sent from the Camel - Users mailing list archive at Nabble.com.
AW: XMPP send instant message
Posted by Robert Thullner <rt...@gmx.at>.
Sorry, I did not find this method in the Camel XmppEndpoint source file.
Which version of Camel did you use?
Is there some guide how to send XMPP messges with camel?
Thanks
Robert
-----Ursprüngliche Nachricht-----
Von: Kevin k [mailto:kevin.kalmbach@gmail.com]
Gesendet: Freitag, 11. Jänner 2008 21:33
An: camel-user@activemq.apache.org
Betreff: Re: XMPP send instant message
Dont know if this helps, but
I had this problem too, looking at XmppEndpoint.java, when a packet is
received, the following code is run (inside of the processPacket method):
InOnly exchange = getExchangeFactory().createInOnlyExchange();
NormalizedMessage in = exchange.createMessage();
exchange.setInMessage(in);
marshaler.toNMS(in, packet);
logger.debug("Exchange: " + exchange);
//send(exchange);
(Note that the last line send(exchange) is commented out. It looks like
this is disabled on purpose.
Tijs wrote:
--
View this message in context:
http://www.nabble.com/XMPP-send-instant-message-tp14072390s22882p14764216.ht
ml
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: XMPP send instant message
Posted by Kevin k <ke...@gmail.com>.
Dont know if this helps, but
I had this problem too, looking at XmppEndpoint.java, when a packet is
received, the following code is run (inside of the processPacket method):
InOnly exchange = getExchangeFactory().createInOnlyExchange();
NormalizedMessage in = exchange.createMessage();
exchange.setInMessage(in);
marshaler.toNMS(in, packet);
logger.debug("Exchange: " + exchange);
//send(exchange);
(Note that the last line send(exchange) is commented out. It looks like
this is disabled on purpose.
Tijs wrote:
>
> I have set-up a simple example with Camel 1.3 that listens for incoming
> messages from XMPP and then should sent a message back to XMPP. I use the
> following configuration:
>
> <route>
> <from uri="xmpp://servicemix@localhost/?password=servicemix"/>
> <to uri="xmpp://test2@localhost/?password=test2&participant=test"/>
> </route>
>
> A message that is sent to user servicemix is received, but the message is
> never sent to user test. I have debugged the code and in the
> XmppPrivateChatProducer class the message is actually sent without any
> errors. Any help is appreciated!
>
> Thanks,
>
> Tijs
>
--
View this message in context: http://www.nabble.com/XMPP-send-instant-message-tp14072390s22882p14764216.html
Sent from the Camel - Users mailing list archive at Nabble.com.
AW: XMPP send instant message
Posted by Robert Thullner <rt...@gmx.at>.
Did you or anyone else already solve this problem? I got stuck with the same
problem that you have.
Greetings
Robert
-----Ursprüngliche Nachricht-----
Von: Tijs [mailto:t.rademakers@chello.nl]
Gesendet: Freitag, 30. November 2007 16:30
An: camel-user@activemq.apache.org
Betreff: XMPP send instant message
I have set-up a simple example with Camel 1.3 that listens for incoming
messages from XMPP and then should sent a message back to XMPP. I use the
following configuration:
<route>
<from uri="xmpp://servicemix@localhost/?password=servicemix"/>
<to uri="xmpp://test2@localhost/?password=test2&participant=test"/>
</route>
A message that is sent to user servicemix is received, but the message is
never sent to user test. I have debugged the code and in the
XmppPrivateChatProducer class the message is actually sent without any
errors. Any help is appreciated!
Thanks,
Tijs
--
View this message in context:
http://www.nabble.com/XMPP-send-instant-message-tf4916588s22882.html#a140723
90
Sent from the Camel - Users mailing list archive at Nabble.com.