[
https://issues.apache.org/jira/browse/CAMEL-4397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben O'Day updated CAMEL-4397:
-----------------------------
Description:
add support for Hazelcast distributed locking/unlocking APIs in a route...see
http://www.hazelcast.com/documentation.jsp#Lock
something like this...
{code}
from("seda:lockTest")
.doTry()
.setHeader(HazelcastConstants.LOCK_OBJECT, simple("ID-${header.id}"))
.to("hazelcast:lock")
.setBody(simple("processed[${body}]"))
.to("mock:mock")
.doFinally()
.to("hazelcast:unlock");
{code}
see this
discussion...http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-td4775904.html
was:
add support for Hazelcast distributed locking/unlocking APIs in a route...see
http://www.hazelcast.com/documentation.jsp#Lock
something like this...
{code}
from("seda:lockTest")
.doTry()
.setHeader(HazelcastConstants.LOCK_OBJECT, simple("ID-${header.id}"))
.to("hazelcast:lock")
.setBody(simple("processed[${body}]"))
.to("mock:mock")
.doFinally()
.to("hazelcast:unlock");
{code}
> add route support for Hazelcast distributed locking/unlocking
> -------------------------------------------------------------
>
> Key: CAMEL-4397
> URL: https://issues.apache.org/jira/browse/CAMEL-4397
> Project: Camel
> Issue Type: Improvement
> Components: camel-hazelcast
> Reporter: Ben O'Day
> Assignee: Ben O'Day
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: CAMEL-4397.patch
>
>
> add support for Hazelcast distributed locking/unlocking APIs in a route...see
> http://www.hazelcast.com/documentation.jsp#Lock
> something like this...
> {code}
> from("seda:lockTest")
> .doTry()
> .setHeader(HazelcastConstants.LOCK_OBJECT, simple("ID-${header.id}"))
> .to("hazelcast:lock")
> .setBody(simple("processed[${body}]"))
> .to("mock:mock")
> .doFinally()
> .to("hazelcast:unlock");
> {code}
> see this
> discussion...http://camel.465427.n5.nabble.com/discuss-implementing-Locks-in-Camel-td4775904.html
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira