You can add batchs dynamically on a java application ee 7 batch? I.e.: upload the jar batch and application to add the new jar to the classpath and run it...
Asked
Active
Viewed 701 times
0
-
You can create jar with batch jobs xml + EJB with schedules and deploy that jar to application server – Rustam Apr 08 '16 at 23:20
-
Maybe... So, i want to manage like start, stop, view status... And APP show me a job list.. – João Santana Apr 09 '16 at 00:20
-
What do you mean by "dynamically"? Given that EE 7 is a standard all the application servers have capabilities to add applications without restarting the server. What in particular are you stuck on? – Scott Kurz Apr 19 '16 at 13:55
-
a batch application has the job descriptors (META-INF / batch-jobs / xx.xml) and classes. my inicial idea was to add jobs in run-time, i mean upload a jar inside the war... – João Santana Apr 19 '16 at 14:14
1 Answers
1
I think you could achieve this with JBeret witch is implementation of JSR 352 provided in JBoss WildFly.
You can achieve add batchs dynamically simply by CDI and build jobs/batchs programatically: https://jberet.gitbooks.io/jberet-user-guide/content/programmatic_job_definition_with_java/index.html
To manage like start, stop, view status I recommend JBeret:

Dave Jarvis
- 30,436
- 41
- 178
- 315

rtbf
- 1,509
- 1
- 16
- 35