JBoss Community

Re: Session and thread safety

created by Sebastian Calbaza in jBPM - View the full discussion

As a note.. if you are using JPAWorkingMemoryDbLogger you need to override the  getEntityManager/0 method. Mine is like this:

final JPAWorkingMemoryDbLogger logger = new JPAWorkingMemoryDbLogger(

                ksession) {

            @Override

            protected EntityManager getEntityManager() {

                return persistenceContextManager.getCmdScopedEntityManager().get();

            }

        };

Reply to this message by going to Community

Start a new discussion in jBPM at Community