Search code examples
javajbossjava-ee-7jboss-eap-6

How to run a bean as a background service?


I need to be able to initiate a bean at startup and have it run constantly in the background using some kind of internal event/time loop (looking for data records to process). I was wondering what the correct Java EE 7/ JBoss EAP 6.2 method of doing this would be.

Any ideas?


Solution

  • Use the Quartz Scheduler framework and have the job fire up as configured.