Disable Spring scheduling when running on jboss -
we have spring 4 webapplication use @enablescheduling
, @scheduled
.
on of our testservers don't want scheduling active. have solved adding profile configuration have @enablescheduling
annotation.
when running on jetty on mac works fine. when running on jboss (eap 6.3) scheduling enabled if delete @enablescheduling
annotation.
can on jboss server turns on spring scheduling?
any other ideas?
tia!
-kaj :)
i suggest control scheduler job via property:
@value(..) private boolean enabled; @scheduled public void myjob() { if (enabled) { // things } }
Comments
Post a Comment