简体   繁体   中英

How to force EJB Scheduler in JBeret

I'm implementing a Scheduler based in JBeret SchedulerTimer.

I had it working with the possibility of "Calendar-based Schedule" and "persistence" (EJB Timer), but currently the project has these features disabled reverting to Managed Scheduled Executor Service Jberet scheduling type . Don't know what were the changes that made these features become disabled, but I need to activate them again.

Is there a way to force the project to use EJB timer?

The feature check is done through rest Api, but it is not clear what to change to have EJB feature available

Corrected the problem.

The BatchRestService asks for supported features to jberet through the restApi http://localhost:8080/project/api//schedules/features

The project needs to explicitly load the correct dependency, I had both jberet-scheduler-executor and jberet-scheduler-timer in the project's pom.xml, this caused some conflict and the executor was answering that it didn't support the Calendar and Persistence features.

I've used only the jberet-scheduler-timer dependency and it worked (removed the jberet-scheduler-executor)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM