[jboss-user] [JBoss Seam] - raiseTimedEvent on ear with multiple wars
baspet
do-not-reply at jboss.com
Fri Jan 25 08:08:49 EST 2008
Hi,
i have an ear application containing one ejb and two war modules.
i wrote a bootstap class in order to start some scheduling:
| @Name("bootstrap")
| @Scope(ScopeType.APPLICATION)
| @Startup
| public class Bootstrap {
| @In EntityManager entityManager;
|
| @Create
| public void start() throws Exception {
| Events.instance().raiseTimedEvent("activationEvent", new CronSchedule((Long) null, "0 0/1 * * * ?"));
| }
|
| @Destroy
| public void stop() {
| }
|
| }
|
The problem is that when server starts, method start() is been calling twice (once per war module), causing the same scheduler to fire twice.
Thanks
V.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123453#4123453
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123453
More information about the jboss-user
mailing list