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
>>>
Maybe contribute a LockingProcessor that accepts a Lock in the constructor?
Don
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
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
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
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.
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.
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
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
-
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.
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.
>
>
> -----
> 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.
.
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
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.
>
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.
15 matches
Mail list logo