[jboss-user] [jBPM] - Re: NPE caused by Bitronix transaction glitch or drools transaction issue?

Jing Zhang do-not-reply at jboss.com
Thu Aug 4 18:25:39 EDT 2011


Jing Zhang [http://community.jboss.org/people/zhangjing2000] created the discussion

"Re: NPE caused by Bitronix transaction glitch or drools transaction issue?"

To view the discussion, visit: http://community.jboss.org/message/619528#619528

--------------------------------------------------------------
Looks like it is related to bitronix transaction. during Environment initiation, if I comment out the transaction manager setting statement as below, there will be no NPE. But I not sure if there is any transaction control anymore. 

        EntityManagerFactory emf = Persistence.createEntityManagerFactory( "org.drools.persistence.jpa" );
                    Environment env = KnowledgeBaseFactory.newEnvironment();
              env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
              //env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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/20110804/76532017/attachment.html 


More information about the jboss-user mailing list