using @schedule in EJB timer, i want to pass the schedule details from database. but it is not allowing passing values. What should i do. In @timeout also i'm not able to start the thread automatically at server start time. @Postconstruct is not working.
using @schedule in EJB timer,not able to pass the schedule details from database
89 views Asked by Vicky Rathee At
1
You might have to use @Timeout, @Singleton, @Startup and @ConcurrencyManagement
Inject the TimerService for configuration
Inject the EntityManager for db-access
Use @Timeout instead of @Schedule
Configure the timer
except usage of EntityManager, this works at our site.