Greetings,

I'll explain my problem shortly, i'm currently working on a project that
uses apache servicemix and apache camel for routing messages, now i'm
working on the XMPP-related stuff and i have some problems (please forgive
my slightly incompetence)

1) configuring the route in the usual method i am unable to specify
different destinations (i.e. in my project i should be able to retrieve
messages from an XMPP port (and it goes well with the URI
from("xmpp://XMPPConsumer?password=xxxx") , note that i'll use two
components (a consumer named systemrx and a producer named systemtx) because
i have choice about this (it is an academic project))

the problem is when i want to send the message to the correct address
because the route is builded when camel context starts (for example setting
a uri like this //.to("xmpp://XMPPProducer/SomeReceiver?password=xxxx");
Specifing the receiver it works well, but i want to change the receiver, now
i have  two possibile solutions

1) Create a route each time i receive a message, (i receive the message,
extract the destination from message body, istantiate the component an then
send)

2) have a dynamic route like this (is this possibile?)
from("xmpp://XMPPConsumer?password=xxxx").process(SomeProcess).toF("xmpp://XMPPConsumer/%s?password=xxxx",destination);
(destination should be setted in SomeProcess)
(reading the manual i discovered that XMPP component supports headers only
for In Messages, (i suggest that setting a "participant" header for the
outgoing message could do the trick but i don't know if this is possible)

otherwise are possibile any other solutions that i don't know? 
thanks for advice, any help would be greatly appreciated

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

Reply via email to