I deployed two (web) applications which use EJB Timeouts
They use the system wide scheduler

when I undeploy one app the main scheduler is shutdown and the other app EJB timeout does not work anymore
steps:
1) deploy app A
2) deploy app B
3) undeploy app B
--> app A timeout is never called and in tomee logs there is a "Scheduler OpenEJB-TimerService-Scheduler_$_InstanceA shutdown complete."

I have a custom configuration in system.properties
looking in EBJTimerImpl.java It seems that my app would have to create its own scheduler (because I configured at least one property org.quartz....)
but it gets the main scheduler

It seems to me tha *StdSchedulerFactory return always the same scheduler if you don't set org.quartz.scheduler.instanceName
*http://grepcode.com/file/repo1.maven.org/maven2/org.quartz-scheduler/quartz/1.8.2/org/quartz/impl/StdSchedulerFactory.java#StdSchedulerFactory.getSchedulerName%28%29

I think that is better to provide automatically *org.quartz.scheduler.instanceName* and *org.quartz.scheduler.instanceId* for each scheduler


I'm trying to bundle a module.properties/application.properties in order to create a custom config for the app
it is a web application, which file should I create?
WEB-INF/module.properties (https://issues.apache.org/jira/browse/TOMEE-386)
WEB-INF/application.properties
META-INF/module.properties
META-INF/application.properties
classes/METAINF/module.properties
classes/META-INF/application.properties


Reply via email to