camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhcohen <bruce_co...@sra.com>
Subject Zookeeper read all child nodes
Date Wed, 20 Mar 2013 18:06:30 GMT
I'm probably missing something obvious but I'm struggling with what seems
like a simple Camel/Zookeeper problem.

I have a zookeeper tree like:

/parent
/parent/child1
/parent/child2
/parent/child3

where the child nodes are ephemeral nodes so I don't know ahead of time what
or how many children I will have.

I'd like to be able to generate a message containing the data for each child
node when my Camel application starts and generate a message containing the
data for new child nodes as they are added.

I started with an route like:

   <from
uri="zookeeper:host:port/parent?listChildren=true&amp;repeate=true"/>
   <split>
      <simple>${body}</simple>
      <to ......>
   </split>

but that is just giving me the child node names.  I'm not sure how I can
take the output of this route to subsequently retrieve the data for each
node.

Is this possible? 

Thanks in advance,
   Bruce








--
View this message in context: http://camel.465427.n5.nabble.com/Zookeeper-read-all-child-nodes-tp5729557.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message