title: Adding delay on jms message processing
body: <p>I am using atomikos with Hibernate and ActiveMQ. My transaction involves,message being commited to DB and sent to queue. JMS reveiver then reads the message and calls get from db. </p>
  
  <p>There are cases where Atomikos has commited to Queue but hibernate commit is still in progress , in the mean time get query is fired from receiver.I tried to find if there is way we can specify commit order in XA transaction but answer seems to be no  reading <a href="http://pauldone.blogspot.in/2016/03/xatransactionseventuallyconsistent.html" rel="nofollow noreferrer">this</a>.</p>
  
  <p>So I was thinking is there a way we can add some lag in message processing so that message is icked up only after 5sec by the time commit would have been successful.</p>