1 of 1 people found this helpful
inject EntityManager to the producer and then pass that entity manager to your work item handler upon initialization.
Thanks for the response.
I could directly inject EntityManager into the Handler, when i set the class path of the WorkitemHandler in META-INF.
However, i am having issues while committing the transaction.
I am using
this would have been begin already when Runtimeengine.startProcess().
But i need my own Transaction scope to control.
How can i achieve it?
Should i take a separate database connection for this task, by defining different persistenceUnit on persistence.xml?
I believe this has been resolved on jira, if that's the case please update this thread and mark it as resolved