Re: [discuss] implementing Locks in Camel

2011-09-07 Thread boday
Lock seems to be the way to go. Also, Hazelcast can extend this to >>>>> be >>>>> distributed across VMs. >>>>> >>>>> So, I've been playing around with adding distributed locking support >>>>> with >>>

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread Donald Whytock
Maybe contribute a LockingProcessor that accepts a Lock in the constructor? Don

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread Matt Pavlovich
browse/CAMEL-4397 >>>> CAMEL-4397 >>>> ) and wanted to get some feedback on doing this. In particular, I'm >>>> using a >>>> Lock instance stored in a ThreadLocal variable (to ensure that the same >>>> thread releases the lock). Does an

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread Christian Schneider
e...thanks - Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp4775904p4775904.html Sent from the Camel Development mailing list archive at Nabble.com. -- Christian Schneid

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread Christian Schneider
ocessor1).unlock(); from(route2).lock(userId).process(processor2).unlock(); Any advice/comments are welcome...thanks - Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp47

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread Hadrian Zbarcea
n O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp4775904p4779134.html Sent from the Camel Development mailing list archive at Nabble.com.

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread Hadrian Zbarcea
consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp4775904p4775904.html Sent from the Camel Development mailing list archive at Nabble.com.

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread boday
load.oracle.com/javase/6/docs/api/java/util/concurrent/locks/ReentrantLock.html >> ReentrantLocks . >> >> something like this... >> >> from(route1).lock(userId).process(processor1).unlock(); >> from(route2).lock(userId).process(processor2).unlock(); >&g

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread Christian Schneider
Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp4775904p4775904.html Sent from the Camel Development mailing list archive at Nabble.com. -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread Willem Jiang
- Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp4775904p4777543.html Sent from the Camel Development mailing list archive at Nabble.com.

Re: [discuss] implementing Locks in Camel

2011-09-07 Thread boday
g-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp4775904p4777543.html Sent from the Camel Development mailing list archive at Nabble.com.

Re: [discuss] implementing Locks in Camel

2011-09-06 Thread Matt Pavlovich
> > > ----- > Ben O'Day > IT Consultant -http://consulting-notes.com > > -- > View this message in context: > http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp4775904p4775904.html > Sent from the Camel Development mailing list archive at Nabble.com.

Re: [discuss] implementing Locks in Camel

2011-09-06 Thread Hadrian Zbarcea
. something like this... from(route1).lock(userId).process(processor1).unlock(); from(route2).lock(userId).process(processor2).unlock(); Any advice/comments are welcome...thanks - Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5

Re: [discuss] implementing Locks in Camel

2011-09-06 Thread Donald Whytock
serId).process(processor1).unlock(); > from(route2).lock(userId).process(processor2).unlock(); > > Any advice/comments are welcome...thanks > > > - > Ben O'Day > IT Consultant -http://consulting-notes.com > > -- > View this message in context: > http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp4775904p4775904.html > Sent from the Camel Development mailing list archive at Nabble.com. >

[discuss] implementing Locks in Camel

2011-09-06 Thread boday
cessor2).unlock(); Any advice/comments are welcome...thanks - Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-tp4775904p4775904.html Sent from the Camel Development mailing list archive at Nabble.com.