Invalid context set up for batch threads
----------------------------------------
Key: WFLY-4917
URL:
https://issues.jboss.org/browse/WFLY-4917
Project: WildFly
Issue Type: Bug
Components: Batch
Affects Versions: 10.0.0.Alpha5
Reporter: James Perkins
Assignee: James Perkins
Fix For: 10.0.0.Alpha6
Batch tasks incorrectly set-up the contexts needed for the executed tasks. The task needs
to be set-up outside the new thread.