[jboss-user] [jBPM] - Re: [JBPM 5.4] - Transaction / Concurrency problem

Guilherme Telles do-not-reply at jboss.com
Tue Aug 13 14:28:33 EDT 2013


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130813/c0345d70/attachment.html 


More information about the jboss-user mailing list