0

I want to use scheduling in jboss7 (and in wildfly) but I don't want to use any EJB. I know the EJB @Schedule can be used but I have a web application and the same WAR should be used in Tomcat too so EJB is out of the question.
What can I use for scheduling?

Thanks,
V.

Viktor
  • 1,183
  • 2
  • 16
  • 34
  • 1
    https://stackoverflow.com/questions/4691132/how-to-run-a-background-task-in-a-servlet-based-web-application/4691650#4691650 but realistically you're throwing away a huge chunk of code on the Wildfly side. Have two different distributions so that on Tomcat you use the ScheduledExecutorService hack and on on full JEE environments you use the tools available. Ultimately then it is a build/distribution issue. – stdunbar Jun 16 '16 at 02:46
  • Third party solution such as Quartz may be? – Quincy Jun 21 '16 at 02:21
  • I am little bit afraid of the unmanaged threads in an app server. Is there any impediment to put EJB in a JAR? I know usually it should be put to a JAR but can it be put to WAR too? Will Wildfly recognise it and use it as an EJB? – Viktor Jun 21 '16 at 11:14

0 Answers0