Skip to content

Commit

Permalink
JBPM-5607 - Using ejb3 timer-service backed by database in EAP 7 not …
Browse files Browse the repository at this point in the history
…working with kie-server application (#732)
  • Loading branch information
mswiderski committed Jan 30, 2017
1 parent 655ea2c commit 6c667c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -45,7 +45,7 @@ public class EJBTimerScheduler {

private static final Logger logger = LoggerFactory.getLogger(EJBTimerScheduler.class);

private static final Integer OVERDUE_WAIT_TIME = Integer.parseInt(System.getProperty("org.jbpm.overdue.timer.wait", "10000"));
private static final Integer OVERDUE_WAIT_TIME = Integer.parseInt(System.getProperty("org.jbpm.overdue.timer.wait", "20000"));

@Resource
private javax.ejb.TimerService timerService;
Expand Down
Expand Up @@ -37,6 +37,8 @@


public class EjbSchedulerService implements GlobalSchedulerService {

private static final Boolean TRANSACTIONAL = Boolean.parseBoolean(System.getProperty("org.jbpm.ejb.timer.tx", "false"));

private AtomicLong idCounter = new AtomicLong();
private TimerService globalTimerService;
Expand Down Expand Up @@ -105,7 +107,7 @@ public JobHandle buildJobHandleForContext(NamedJobContext ctx) {

@Override
public boolean isTransactional() {
return false;
return TRANSACTIONAL;
}

@Override
Expand Down

0 comments on commit 6c667c2

Please sign in to comment.