This content has been marked as final.
Show 3 replies
-
1. Re: Problem with Spring and Persistence
garethed Jan 23, 2013 4:12 AM (in response to garethed)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;
-
2. Re: Problem with Spring and Persistence
swiderski.maciej Jan 23, 2013 5:32 AM (in response to garethed)notice that you have different names in both cases, in spring config you define org.jbpm.persistence.jta and in code you use org.jbpm.persistence.jpa. maybe that's just typo in spring config that you have jta instead of jpa?
HTH
-
3. Re: Problem with Spring and Persistence
garethed Jan 23, 2013 5:53 AM (in response to swiderski.maciej)That is embarrassing, I can't believe I didn't spot that.
Thanks.