title: Scheduling a MDB
body: <p>I'm looking for a way to schedule a MDB. My requirement is that the MDB is set to feed a system from the company. This system goes out for maintenance every night, but the other systems don't know about it and may keep trying to feed it. A persistent queue is great in the way that my messages could be pilled until system goes back online.</p>
  
  <p>How could I manage that? I've run into that already: <a href="https://stackoverflow.com/questions/10413467/schedule-a-message-driven-bean-to-access-a-queue-during-certain-times">schedule a message driven bean to access a queue during certain times?</a> but it uses java 7, and worst, message is lost if the server restarts (messages is taken out of the JMS Queue and kept in memory until timer process it).</p>
  
  <p>Another use of this would be to implement a "retry" queue. In case of error I want to retry processing my message, but not immediately, after a certain amount time only.</p>
  
  <p>Any ideas to keep my MDB offline for a certain amount of time?</p>