Hi Great work.
I think Christians work is already pluggable, so it's just a matter of having a SPI interface, and possible with some basic class implementation for 3rd party to extend / implement. As the JDBC code most likely does not need any 3rd party JARs it can be hosted in camel-core. Or possible consider it in camel-sql, as we have other JDBC extensions there (repo for idempotent EIP, repo for aggregator EIP etc.). Then we can add other implementations of the lock logic in hazelcast, file, (possible zookeeper) etc. And of course Apache SMX could have a implementation as well. Likewise some JMX API to be able to know which node has the lock would be nice. And possible a way to query this from the Camel Karaf shell as well. On Fri, Nov 11, 2011 at 4:48 PM, Raul Kripalani <[email protected]> wrote: > Hi Christian, > > Nice work! > > I'm wondering if we could achieve something similar using the new kind on > the block, Hazelcast? It seems to be gaining much traction as of late, and > it could be a possible use case for the camel-hazelcast component? > > -- Raúl. > > On 11 November 2011 14:54, Christian Schneider <[email protected]>wrote: > >> Hi all, >> >> in most cases when you use camel in production you have to provide some >> fault tolerence or high availability. >> So that could be easy by just deploying the camel route to two servers. >> >> In some cases though you have to make sure that only one of the routes is >> running at any time. For example if you use a jpa consumer and want to make >> sure that your messages keep in sequence then you can not simply start it >> twice. >> >> As I already had this problem some times I finally decided to write a >> small project "simplecluster" that solves this problem. >> >> See my article on: >> http://www.liquid-reality.de/**x/XYBe<http://www.liquid-reality.de/x/XYBe> >> >> The code can be found on github: >> https://github.com/cschneider/**simplecluster<https://github.com/cschneider/simplecluster> >> >> Christian >> >> -- >> Christian Schneider >> http://www.liquid-reality.de >> >> Open Source Architect >> Talend Application Integration Division http://www.talend.com >> >> > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
