You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@batchee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2014/02/01 21:36:08 UTC
[jira] [Resolved] (BATCHEE-2) make the thread creation an SPI
[ https://issues.apache.org/jira/browse/BATCHEE-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved BATCHEE-2.
--------------------------------------
Resolution: Fixed
resolving since it seems it is built-in, please reopen and detail the need if I missed sthg
> make the thread creation an SPI
> --------------------------------
>
> Key: BATCHEE-2
> URL: https://issues.apache.org/jira/browse/BATCHEE-2
> Project: BatchEE
> Issue Type: Bug
> Reporter: Mark Struberg
> Assignee: Mark Struberg
>
> currently Steps will be created via new Thread. This means that any Java EE ThreadLocal stuff is _not_ set up properly. To support various kind of environments (e.g. JavaEE / JavaSE / Servlets) we need pluggable strategies for creating new threads (and probably a few more).
> In JavaEE we could e.g. leverage wrapping via @Asynchronous. Or ee-concurrency-utils (JSR-236) once the spec got a MR out (this spec is currently totally bollocks).
> The goal is to have EJBs, Resources, CDI etc set up correctly and available in Batch Steps if we run in a respective environment.
> For EE6 and EE7 containers thats self explaining. And even in JavaSE it would be usable if one e.g. uses openejb-embedded for his batches.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)