Instead of writing your own recipes (which is not trivial) consider using Curator which has all of the recipes from the ZK website and more.
http://curator.incubator.apache.org/ ==================== Jordan Zimmerman On Jul 22, 2013, at 11:54 PM, bsargurunathan <[email protected]> wrote: > Hi Guys, > > Please guide me how to implement the Barrier and producer-consumer queue in > zookeeper? > Basically I implemented the code whatever the wiki is having, but I am > facing some issues and its follows. > > Keeper exception when instantiating queue: KeeperErrorCode = ConnectionLoss > for /b1 > > Its happens while checking the barrier node exist in zookeeper. > Please guide me how to implement it. > > Thanks, > Guru > > > > -- > View this message in context: > http://zookeeper-user.578899.n2.nabble.com/How-to-implement-the-Barrier-and-producer-consumer-Queue-tp7578947.html > Sent from the zookeeper-user mailing list archive at Nabble.com.
