JBoss Community

Re: Problem with Spring and Persistence

created by Gareth Edwards in jBPM - View the full discussion

I'm just doing this instead now:

 

if (emf == null){

                              emf = Persistence.createEntityManagerFactory( "org.jbpm.persistence.jpa" );

                              Environment env = KnowledgeBaseFactory.newEnvironment();

                              env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, emf );

                    }

  return emf;

Reply to this message by going to Community

Start a new discussion in jBPM at Community