-
1. Re: Another problem with Timer Service: duplication
raist_majere Nov 25, 2004 5:08 AM (in response to ssambi)There isn't a crash in my example, my problem occurs while Jboss is starting.
Here are the steps I think Jboss works with my timers:
- Jboss deploys my application
- Jboss starts my application
- The ServletContext of my application is initialized
- My timers are created by my ServletContextListener
- Jboss stores my timers in the database
- Jboss starts my timers
- Jboss restores and starts all timers found in the database (my timers too, although they didn't crashed, they are just created)
- My timers are duplicated.
Actually, if I deploy my application when Jboss has already started, the duplication doesn't occur. -
2. Re: Another problem with Timer Service: duplication
raist_majere Nov 28, 2004 11:36 PM (in response to ssambi)If you're using JBoss 4 (don't know if the same is in JBoss 3.2), you can configure the Timer Service editing the file ejb-deployer.xml file in the deploy dir. By default, as you guessed, is configured to persist the timers in the database, but in that file you can change this.
-
3. Re: Another problem with Timer Service: duplication
ssambi Nov 29, 2004 3:34 AM (in response to ssambi)Thank you for your reply.
I can change the ejb-deployer.xml file to avoid to store my timers in the database, but then I don't know if the timers can be restored after crashes and if they work in a cluster environment. -
4. Re: Another problem with Timer Service: duplication
ssambi Dec 2, 2004 11:26 AM (in response to ssambi)There isn't a crash in my example, my problem occurs while Jboss is starting.
Here are the steps I think Jboss works with my timers:
- Jboss deploys my application
- Jboss starts my application
- The ServletContext of my application is initialized
- My timers are created by my ServletContextListener
- Jboss stores my timers in the database
- Jboss starts my timers
- Jboss restores and starts all timers found in the database (my timers too, although they didn't crashed, they are just created)
- My timers are duplicated.
Actually, if I deploy my application when Jboss has already started, the duplication doesn't occur.