|
|
|
I probably should not be asking this here - however, is there a general architectural approach in camel for reconnecting or attempting to reinitialize a route that is failing due to an IO-type error or exception? I mean not just with the XMPP component but with components in general. It seems to me if certain errors occur "downstream", such as the above failure to connect to the XMPP server, the entire route (i.e.: consuming the inbound endpoint) should/could be suspended until the route can be properly reestablished. Is this a feature that is there already that I am missing?
Yes please ask at the user forum. Much broader audience to shed some light on this matter.
Michael if you are able to find it Smack API on any maven repo that would be great. We need a maven repo where we can get the .jars from.
Hey, this is a working port of camel-xmpp to smack 3.0.4. I didn't get the maven repo stuff to work (as mentioned on the smack forum - see comments in the pom.xml) - need to download it manual and tweak the local maven repo.
i added a todo for the nickname stuff. think it would be nice to add the nickname to the room uri (like room1@foo.com/dude) and parse it when consuming the room. the code works with openfire 3.5.1/2. i will submit new changes as patches here, too, and hereby grant all rights of the patch code to ASF. hope the patch will help and are appreciating comments and more suggestions, ps: tried to be javaesk though on the ruby path these days ... Hi Freetwix
The "_amq" what does it really do? Do you have a link to some documentation that explains this "feature"? Wow, that was quick, thanks Claus. I looked for a maven repo with the new smack API and could not find one. How would one get it added to the main repo?
I do think our friends at SeriviceMix have a maven repo where we could have the smack hosted.
But no promises. In fact we have other components that hang on older .jars because sadly the central maven repos out there tend to not get updated. So its a pain in the ass to find a decent maven repo that host the jars. hey claus,
the '_amq' is just an extension to the username providing a unique nickname of the amq user in the muc. a nickname in a muc needs to be unique, else an exception will be raised. greets, Nice job Michael,
I have a question about the fragment:
Does it cause errors having a header without value? I can imagine situation when it matters just the fact that header is in the message and there is no need to put any value into it. Or indication of empty set. Hmm, may be sending empty string is possible? It may cost a lot of time for user to understand why header vanishes.
Okay the smack API is somewhere on a maven repo
<?xml version="1.0" encoding="UTF-8"?><project> I think we need the good servicemix guys to put smack on their repo
There are two artifacts needed:
<artifactId>smack</artifactId> and <artifactId>smackx</artifactId> Gertv will look into adding the jars to the servicemix maven repo later. Artifacts org.igniterealtime.smack:smack:3.0.4 and org.igniterealtime.smack:smackx:3.0.4 have been added to the servicemix repo.
Thanks Gert. I will modify the pom.xml so we grab these new babies.
And I guess Vadim, Michael or other can help upgrade the java code in camel-xmpp if anything is needed. BTW: If anyone beats me to it feel free to modify the pom.xml so we are using 3.0.4 that can be resolved in the servicemix repo. Check out the saxon component where the servicemix repo is added as a maven repo.
Anyone up for the task of creating a patch for the upgrade to smack 3.0.4. Michael, sorry we have changed the camel-xmpp quite a bit lately so your original patch must be redone.
We have a maven repo with the 3.0.4 jars now. 1) Add this to pom.xml 2) Upgrade to 3.0.4 in pom.xml Then you are set. You will get some compilation errors since the API in 3.0 is different than 2.x. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
This is quite a problem that frameworks doesn't upgrades in the maven repos.