Skip to content

Commit

Permalink
Revert "[JBPM-10088] Set to no transactional"
Browse files Browse the repository at this point in the history
This reverts commit 61b735b.
  • Loading branch information
fjtirado committed Nov 22, 2023
1 parent 61b735b commit 6c364e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,11 @@ public <I> void transaction(Transaction<I> operation, I item) throws Exception {
try {
operation.doWork(item);
} catch (Exception transactionEx) {
ctx.setRollbackOnly();
try {
ctx.setRollbackOnly();
} catch (Exception rollbackEx) {
logger.info("Exception occurs when setting rollback only {}", rollbackEx.getMessage());
}
throw transactionEx;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
public class EjbSchedulerService implements GlobalSchedulerService {
private static final Logger logger = LoggerFactory.getLogger(EjbSchedulerService.class);

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

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

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

@Override
Expand Down

0 comments on commit 6c364e7

Please sign in to comment.