[jboss-user] [JBoss jBPM] - Re: Exception when deploying a process definition to Mysql
dingo001
do-not-reply at jboss.com
Fri Aug 10 17:23:36 EDT 2007
"sujeewanie" wrote : Ok.Got it again.
| In the jbpm-configuration created by the example, no services are created.
| I commented that code and obtained a context throgh the default settings like
|
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
|
| Fanally it works now
Change to this
| jbpmConfiguration = JbpmConfiguration
| .parseXmlString("<jbpm-configuration>"
| +
|
| // A jbpm-context mechanism separates the jbpm core
| // engine from the services that jbpm uses from
| // the environment.
|
| " <jbpm-context>"
| + " <service name='persistence' "
| + " factory='org.jbpm.persistence.db.DbPersistenceServiceFactory' />"
| + " <service name='tx' factory='org.jbpm.tx.TxServiceFactory' />"
| + " </jbpm-context>"
| +
|
| // Also all the resource files that are used by jbpm are
| // referenced from the jbpm.cfg.xml
|
| " <string name='resource.hibernate.cfg.xml' "
| + " value='hibernate.cfg.xml' />"
| + " <string name='resource.business.calendar' "
| + " value='org/jbpm/calendar/jbpm.business.calendar.properties' />"
| + " <string name='resource.default.modules' "
| + " value='org/jbpm/graph/def/jbpm.default.modules.properties' />"
| + " <string name='resource.converter' "
| + " value='org/jbpm/db/hibernate/jbpm.converter.properties' />"
| + " <string name='resource.action.types' "
| + " value='org/jbpm/graph/action/action.types.xml' />"
| + " <string name='resource.node.types' "
| + " value='org/jbpm/graph/node/node.types.xml' />"
| + " <string name='resource.varmapping' "
| + " value='org/jbpm/context/exe/jbpm.varmapping.xml' />"
| + "</jbpm-configuration>");
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073207#4073207
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073207
More information about the jboss-user
mailing list