Skip to Content
0
Former Member
Feb 04, 2014 at 12:23 PM

To Hold Messages in PI every time messages comes in Empty Dedicated Queue

25 Views

Hi,

My requirement goes like this, i want to hold messages in a particular Queue of PI only when the queue is empty, i.e.

Consider 100 messages are triggered in bulk then before executing first message message, it should be held at queue level in PI for certain amount of time(e.g. 30 sec) and after 30 sec messages should be processed as normally i.e i don't want delay of 30 second for every message which can be achieved by Thread.sleep(30000).

So once the queue becomes empty and again the messages are triggered, again it should be held for 30 second.

Hope my requirement is clear.

Any suggestions for how can this be achieved will be appreciated.

Thanks in advance.

Regards,

Ankit.