On Mon, Dec 7, 2015 at 8:28 PM,  <[email protected]> wrote:
> Are you recommending that my consumer attempts to retrieve the node until it
> is present?

Kind of. One approach I can think of

1. If your code is adding node under specific path say /workItems then
have a JCR Listener registered to monitor changes under those path

2. The queue consumer upon getting message can check if node is
present or not. If not it waits on a lock

3. The listener upon receiving any event (specifically external event
[1]) would then notify such listeners.

4. Listener checks if the required node is found. if not it goes for
sleep again. Such retry can be done for 'n' times before giving up

Chetan Mehrotra
[1] 
https://jackrabbit.apache.org/api/2.1/org/apache/jackrabbit/api/observation/JackrabbitEvent.html#isExternal()

Reply via email to