Guilherme Telles [
https://community.jboss.org/people/guilherme.telles] created the
discussion
"Re: [JBPM 5.4] - Transaction / Concurrency problem"
To view the discussion, visit:
https://community.jboss.org/message/832543#832543
--------------------------------------------------------------
Maciej, thanks for answering
I changed the code to the following:
public Environment getEnvironment() {
LOGGER.info("CREATING NEW ENVIRONMENT");
environment = KnowledgeBaseFactory.newEnvironment();
environment.set(EnvironmentName.ENTITY_MANAGER_FACTORY,
getEntityManagerFactoryJbpm());
return environment;
}
So that everytime an Environment is needed, a new one is created.
But I'm still getting the same error.
There's some other cause to the error?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/832543#832543]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]