[jboss-dev-forums] [jBPM Development] - Re: KnowledgeStoreServiceImpl.buildCommandService java.lang.reflect.InvocationTargetException
gigazhang
do-not-reply at jboss.com
Tue Jun 19 04:36:34 EDT 2012
gigazhang [https://community.jboss.org/people/gigazhang] created the discussion
"Re: KnowledgeStoreServiceImpl.buildCommandService java.lang.reflect.InvocationTargetException"
To view the discussion, visit: https://community.jboss.org/message/742603#742603
--------------------------------------------------------------
5.3.0.Final
when I do so:
KnowledgeBase kbase = readKnowledgeBase(url);
// 创建EntityManagerFactory
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, entityManagerFactory);
env.set(EnvironmentName.TRANSACTION_MANAGER, transactionManager);
env.set(EnvironmentName.GLOBALS, new MapGlobalResolver());
Properties properties = new Properties();
properties.put("drools.processInstanceManagerFactory", "org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory");
properties.put("drools.processSignalManagerFactory", "org.jbpm.persistence.processinstance.JPASignalManagerFactory");
KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
return JPAKnowledgeService.newStatefulKnowledgeSession(kbase, config, env);
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/742603#742603]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120619/d6253c3e/attachment.html
More information about the jboss-dev-forums
mailing list