[jBPM] - Re: [JBPM 5.4] - Transaction / Concurrency problem
Guilherme Telles <[email protected]> Tue, 13 Aug 2013 14:28:33 -0400
| Newsgroups | gmane.comp.java.jboss.user |
|---|---|
| Message-ID | <[email protected]> |
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&containerType=14&container=2034]
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user