Skip to content

Commit

Permalink
[JBPM-10088] Set to no transactional
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtirado committed Nov 22, 2023
1 parent 60f0b24 commit 61b735b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,7 @@ public <I> void transaction(Transaction<I> operation, I item) throws Exception {
try {
operation.doWork(item);
} catch (Exception transactionEx) {
try {
ctx.setRollbackOnly();
} catch (Exception rollbackEx) {
logger.info("Exception occurs when setting rollback only {}", rollbackEx.getMessage());
}
ctx.setRollbackOnly();
throw transactionEx;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@
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 @@ -218,7 +216,7 @@ public JobHandle buildJobHandleForContext(NamedJobContext ctx) {

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

@Override
Expand Down

0 comments on commit 61b735b

Please sign in to comment.