-
1. Re: Preferred way to start batchlets?
coders4 Apr 15, 2014 12:49 PM (in response to coders4)Hi,
it's no problem to start a batchlet or chunk by a session bean as described here:
http://www.planetjones.co.uk/blog/25-05-2013/introducing-jsr-352-java-batch-ee-7.html
But I thought about something like starting the batchlet from the command line.
In this case the interesting question is:
How the Java EE stuff can be handled that it will work?
Another interesting question is:
Is it possible to call a session bean from the batchlet instance?
If yes: How it works?
Best regards,
Steven
-
2. Re: Preferred way to start batchlets?
jamezp Apr 16, 2014 11:55 AM (in response to coders4)There is currently not a way to start a batch job from the command line, but there is a JIRA to add that functionality.
You can use CDI in a batchlet so if you can @Inject the resource then you could do that.
--
James R. Perkins
-
3. Re: Preferred way to start batchlets?
coders4 Apr 17, 2014 7:14 AM (in response to jamezp)Thank you James for your response!
So I would have to implement my batchlets which can be started from the command line with the help of JBeret (Java SE) and Weld-Se.
Am I right?
-
4. Re: Preferred way to start batchlets?
jamezp Apr 17, 2014 11:26 AM (in response to coders4)Oh sorry maybe I misunderstood. There is a SE version of JBeret you can use as well. There is some information on the jberet/jsr352 · GitHub repository. You should just need the jberet-se dependency in your CP to enable it for the SE environment.
--
James R. Perkins