EJB programming & troubleshooting: How a timer is persisted, when an EJB container crashes?

  1. hi,

    i read in ejb timer tutorials that container persists the running timers and making it to resume its operation once the EJB container is up. so, how does this persistence happens? where does the details of timer gets stored and retrieved back? need some comments on this at programming-level. any effort towards this wuld b appreciated.

  2. JBoss timer persistence[ Go to top ]

    In the default JBoss install, if you look at


    you will see an mbean named "jboss.ejb:service=EJBTimerService,persistencePolicy=database" that references a class called org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin. So if you look at the source for that class I imagine you would be able to see how JBoss persists its EJB timers in the general case.