<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
jbpm4.4 - jbpm4_deployprop has no records ??
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/tonylian">Tony Lian</a> in <i>jBPM Development</i> - <a href="http://community.jboss.org/message/593971#593971">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I use jBPM4.4 with Spring3.5.2, and use c3p0 datasource.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>when I deploy() a .jpdl.xml file, the table [jbpm4_deployprop] has only <strong>ONE</strong> record: [langid].</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>why there is <strong>NO</strong> [pdid],[pdkey],[pdversion] ??</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>--------------------------------------------------------------------------------------</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>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])</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>----applicationContext.xml------</p><p>  <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"><br/>    <property name="configLocation" value="classpath:jbpm.hibernate.cfg.xml" /><br/>    <property name="dataSource" ref="dataSource" /><br/>  </bean><br/>  <br/><bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper"><br/>  <property name="jbpmCfg" value="jbpm.cfg.xml"></property><br/></bean></p><p><bean id="processEngine" factory-bean="springHelper"<br/>  factory-method="createProcessEngine" /><br/><bean id="repositoryService" factory-bean="processEngine"<br/>  factory-method="getRepositoryService" /></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>-----jbpm.cfg.xml----</p><p><jbpm-configuration></p><p>  <import resource="jbpm.default.cfg.xml" /><br/>  <import resource="jbpm.tx.spring.cfg.xml" /><br/>  <import resource="jbpm.jpdl.cfg.xml" /><br/>  <import resource="jbpm.bpmn.cfg.xml" /><br/>  <import resource="jbpm.identity.cfg.xml" /><br/>  <import resource="jbpm.businesscalendar.cfg.xml" /><br/>  <import resource="jbpm.console.cfg.xml" /><br/>  <import resource="jbpm.jobexecutor.cfg.xml" /></p><p></jbpm-configuration></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>----jbpm.hibernate.cfg.xml-----</p><p><hibernate-configuration><br/>  <session-factory><br/>    <property name="hibernate.dialect">org.hibernate.dialect.Oracle9iDialect</property><br/>    <property name="hibernate.show_sql">true</property><br/>    <property name="hibernate.format_sql">true</property></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    <mapping resource="jbpm.repository.hbm.xml" /><br/>    <mapping resource="jbpm.execution.hbm.xml" /><br/>    <mapping resource="jbpm.history.hbm.xml" /><br/>    <mapping resource="jbpm.task.hbm.xml" /><br/>    <mapping resource="jbpm.identity.hbm.xml" /><br/>  </session-factory><br/></hibernate-configuration></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/593971#593971">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>