Reputation: 371
I'm currently using WSO2 ESB 4.8.1 and I want to know whether it is possible to delay the ESB response from within the service. That is, if a response arrives from the relevant backend, output it from the ESB service with a delay of a certain time.(example 60000ms)
Thanks in advance.
Upvotes: 0
Views: 97
Reputation: 1294
Have you tried adding a thread sleep [1].
<script language="js">java.lang.Thread.sleep(5000);</script>
[1]-http://sanjeewamalalgoda.blogspot.com/2013/11/how-to-add-sleep-interval-or-delay.html
Upvotes: 1