-
1. Re: Concurrency issue with LocalTaskService
calca May 9, 2013 2:13 PM (in response to jkranes)I had problems with LocalTaskService. I think the problem is that LocalTaskService is not thread safe.. I solved problems just creating a new LocalTaskService per requrest.
Thanks
Demian
-
2. Re: Concurrency issue with LocalTaskService
jkranes May 9, 2013 2:46 PM (in response to calca)Yes, creating a new LocalTaskService instance inside each method where I use it does seem to do the trick, so it does seem to be the source of the concurrency error. At least based on some quick testing, I seem to be able to construct it using a singleton instance of org.jbpm.task.service.TaskService. Next step is to optimize a bit by creating only one per request as you suggested.
Any other similar issues I should be looking out for? I am still trying to figure out a good workaround for the StatefulKnowledgeSession thread safety issue. I'm a bit concerned that all these thread safety issues, as the app I am working on is expected to eventually scale up fairly high.
Thanks,
Jon
-
3. Re: Concurrency issue with LocalTaskService
calca May 9, 2013 2:56 PM (in response to jkranes)Well, this was the last concurrency issue I had .
And I also know that the jBPM team is aware of the issue so it should be solevd in next release (probably jBPM6).
Thanks!