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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -