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

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -