users@glassfish.java.net

Re: Timer entries are deleted on server Shutdown

From: <forums_at_java.net>
Date: Mon, 3 Feb 2014 16:57:57 -0600 (CST)

Hi Arres, EJB Timer service can be setup into 2 type one persist into
database or not. If you no required to save the scheduler into persistence
then set this into false. Commonly you just need to set the persistence into
false. Persistence is set into true if you are using cluster on multiple
instance and server. So each instance can synchronize the scheduler and avoid
duplicate running the same scheduler. I think you can set this persistence
into false. This is how the persistence can be setup in ejb-jar.xml
DataRateSchedulerBean
com.company.sms.ejb.core.scheduler.DataRateSchedulerBean Singleton 00 18
doWork false Bean Hope this will help you. Thanks Ferry

--
[Message sent by forum member 'f3riyanto']
View Post: http://forums.java.net/node/901035