batchee-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BATCHEE-115) StepScope blows up with ContextNotActiveException in partitioned batches
Date Tue, 10 Jan 2017 10:29:58 GMT

    [ https://issues.apache.org/jira/browse/BATCHEE-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15814604#comment-15814604
] 

Romain Manni-Bucau commented on BATCHEE-115:
--------------------------------------------

[~rsandtner] @Inject StepContext ctx; works/has to work. Not sure lazy lookup is supposed
to work since injections are mainly valid only at instantiation time

> StepScope blows up with ContextNotActiveException in partitioned batches
> ------------------------------------------------------------------------
>
>                 Key: BATCHEE-115
>                 URL: https://issues.apache.org/jira/browse/BATCHEE-115
>             Project: BatchEE
>          Issue Type: Bug
>          Components: batchee-extensions
>    Affects Versions: 0.5-incubating
>            Reporter: Reinhard Sandtner
>            Assignee: Reinhard Sandtner
>         Attachments: BATCHEE-115.patch
>
>
> if we use {{@StepScoped}} beans or batch artifacts in a partitioned batch we blow up
with a ContextNotActiveException.
> Currently the setup of the threads is done via Listeneres but the {{*StepScopeListener}}s
gets only called before or after the 'parent' step while the {{*JobScopeListener}}s are called
before the start of each partition thread if they are declared in batchee.properties.
> Everything works fine for single threaded batches ;)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message