title: Using @Timeout in EJB instead of Thread.sleep()
body: <p>I am hitting a webservice from my code twice. The first hit gives me a product_ID using which as a path parameter I make the second get call which gives me the response. </p>
  
  <p>The problem is that the second(GET) call should be hit after 2 seconds from the first(POST) call. I am using EJB in my project and the simplest solution is using Thread.sleep(2000). But EJB does not recommend the programmer to manage threads on it's own.</p>
  
  <p>In my research I have found a probable solution, but due to my lack of EJB skills I am not able to understand it much. could someone guide me to solve this issue.</p>
  
  <p>The URL to the probable solution is: <a href="http://www.deplication.net/2011/07/using-ejb3-timer-service-instead-of.html" rel="nofollow noreferrer">Using the EJB3 timer service instead of Thread.sleep()</a></p>