JBoss Community

jbpm4.4 - jbpm4_deployprop has no records ??

created by Tony Lian in jBPM Development - View the full discussion

I use jBPM4.4 with Spring3.5.2, and use c3p0 datasource.

 

when I deploy() a .jpdl.xml file, the table [jbpm4_deployprop] has only ONE record: [langid].

 

why there is NO [pdid],[pdkey],[pdversion] ??

 

--------------------------------------------------------------------------------------

 

I found that : If I use   <import resource="jbpm.tx.hibernate.cfg.xml" />  in jbpm.cfg.xml , and connect the DB by jbpm.hibernate.xml, it works OK.

 

but, if I use jBPM with Spring, use   <import resource="jbpm.tx.spring.cfg.xml" /> in jbpm.cfg.xml , and connect the DB by Spring dataSource in applactionContext.xml, it dose not work ! (only one record insert into [jbpm4_deployprop])

 

----applicationContext.xml------

  <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    <property name="configLocation" value="classpath:jbpm.hibernate.cfg.xml" />
    <property name="dataSource" ref="dataSource" />
  </bean>
 
<bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper">
  <property name="jbpmCfg" value="jbpm.cfg.xml"></property>
</bean>

<bean id="processEngine" factory-bean="springHelper"
  factory-method="createProcessEngine" />
<bean id="repositoryService" factory-bean="processEngine"
  factory-method="getRepositoryService" />

 

 

 

-----jbpm.cfg.xml----

<jbpm-configuration>

  <import resource="jbpm.default.cfg.xml" />
  <import resource="jbpm.tx.spring.cfg.xml" />
  <import resource="jbpm.jpdl.cfg.xml" />
  <import resource="jbpm.bpmn.cfg.xml" />
  <import resource="jbpm.identity.cfg.xml" />
  <import resource="jbpm.businesscalendar.cfg.xml" />
  <import resource="jbpm.console.cfg.xml" />
  <import resource="jbpm.jobexecutor.cfg.xml" />

</jbpm-configuration>

 

 

 

----jbpm.hibernate.cfg.xml-----

<hibernate-configuration>
  <session-factory>
    <property name="hibernate.dialect">org.hibernate.dialect.Oracle9iDialect</property>
    <property name="hibernate.show_sql">true</property>
    <property name="hibernate.format_sql">true</property>

 

    <mapping resource="jbpm.repository.hbm.xml" />
    <mapping resource="jbpm.execution.hbm.xml" />
    <mapping resource="jbpm.history.hbm.xml" />
    <mapping resource="jbpm.task.hbm.xml" />
    <mapping resource="jbpm.identity.hbm.xml" />
  </session-factory>
</hibernate-configuration>

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community