Discussion:
[jboss-user] [jBPM] - Re: Problem with Spring and Persistence
Gareth Edwards
2013-01-23 09:12:47 UTC
Permalink
Gareth Edwards [https://community.jboss.org/people/garethed] created the discussion

"Re: Problem with Spring and Persistence"

To view the discussion, visit: https://community.jboss.org/message/793711#793711

--------------------------------------------------------------
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
[https://community.jboss.org/message/793711#793711]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-01-23 10:32:23 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Problem with Spring and Persistence"

To view the discussion, visit: https://community.jboss.org/message/793738#793738

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793738#793738]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Gareth Edwards
2013-01-23 10:53:42 UTC
Permalink
Gareth Edwards [https://community.jboss.org/people/garethed] created the discussion

"Re: Problem with Spring and Persistence"

To view the discussion, visit: https://community.jboss.org/message/793752#793752

--------------------------------------------------------------
That is embarrassing, I can't believe I didn't spot that.

Thanks.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/793752#793752]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...