<!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;">
Re: how to install the jbpm5 to work on mysql database
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/nirav2003">nirav2003</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/611069#611069">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="color: #000000; font-size: 12pt; font-family: Calibri;">Sorry for the late reply, but still I was trying to make it work. I have configured it as follows:</span></p><p class="MsoListParagraph" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-list: Ignore; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri; font-size: 12pt;">1.</span><span style="font: 7pt 'Times New Roman';">       </span></span><span style="font-size: 12pt; font-family: Calibri;">Hibernate.cfg.xml</span></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">     <session-factory></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">        <!-- Database connection settings --><br/>        <property name="connection.driver_class">com.mysql.jdbc.Driver</property><br/>        <property name="connection.url">jdbc:mysql://192.168.12.99:3306/jbpm_demo?useUnicode=true&amp;characterEncoding=UTF-8</property><br/>        <!--property name="connection.url">jdbc:h2:file:/NotBackedUp/data/mydb</property--><br/>        <property name="connection.username">jbpmUser</property><br/>        <property name="connection.password">jbpm</property></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">        <!-- JDBC connection pool (use the built-in) --><br/>        <property name="connection.pool_size">1</property></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">        <!-- SQL dialect --><br/>        <property name="dialect">org.hibernate.dialect.MySQLInnoDBDialect</property></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">        <!-- Enable Hibernate's automatic session context management --><br/>        <property name="current_session_context_class">thread</property></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">        <!-- Disable the second-level cache  --><br/>        <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">        <!-- Echo all executed SQL to stdout --><br/>        <property name="show_sql">false</property></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">        <!-- Drop and re-create the database schema on startup? --><br/>        <property name="hbm2ddl.auto">create</property></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">        <mapping resource="AuditLog.hbm.xml"/></span></p><p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-family: Calibri; color: #000000; font-size: 12pt;">    </session-factory><br/></span></p><p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-list: Ignore; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri; font-size: 12pt;">2.</span><span style="font: 7pt 'Times New Roman';">       </span></span><span style="font-size: 12pt; font-family: Calibri;">Persistence.xml</span></span></p><p class="MsoListParagraphCxSpFirst" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000; font-size: 12pt; font-family: Calibri;"><persistence-unit name="org.jbpm.persistence.jpa" transaction-type="JTA"><br/>    <provider>org.hibernate.ejb.HibernatePersistence</provider><br/>    <jta-data-source>java:jdbc/jbpmDatasource</jta-data-source>       <br/>    <mapping-file>META-INF/JBPMorm.xml</mapping-file><br/>    <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class><br/>    <class>org.drools.persistence.info.SessionInfo</class><br/>    <class>org.drools.persistence.info.WorkItemInfo</class><br/>    <properties><br/>      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/>         <br/>      <property name="hibernate.max_fetch_depth" value="3"/><br/>      <property name="hibernate.hbm2ddl.auto" value="create" /><br/>      <property name="hibernate.show_sql" value="false" /> <br/>      <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /><br/>    </properties>        <br/>  </persistence-unit><br/></span></p><p class="MsoListParagraphCxSpFirst" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-list: Ignore; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri; font-size: 12pt;">3.</span><span style="font: 7pt 'Times New Roman';">       </span></span><span style="font-size: 12pt; font-family: Calibri;">TestDS1-ds.xml</span></span></p><p class="MsoListParagraphCxSpMiddle" style="text-indent: -0.25in; margin: 0in 0in 0pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000; font-size: 12pt; font-family: Calibri;">  <local-tx-datasource><br/>    <jndi-name>jdbc/jbpmDatasource</jndi-name><br/>    <connection-url>jdbc:mysql://192.168.12.99:3306/jbpm_demo?useUnicode=true&amp;characterEncoding=UTF-8</connection-url><br/>    <!--connection-url>jdbc:h2:mem:mydb</connection-url--><br/>    <driver-class>com.mysql.jdbc.Driver</driver-class><br/>    <user-name>jbpmUser</user-name><br/>    <password>jbpm</password><br/>  </local-tx-datasource><br/></span></p><p class="MsoListParagraphCxSpMiddle" style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000;"><span style="mso-bidi-font-family: Calibri; mso-list: Ignore; mso-bidi-theme-font: minor-latin;"><span style="font-family: Calibri; font-size: 12pt;">4.</span><span style="font: 7pt 'Times New Roman';">       </span></span><span style="font-size: 12pt; font-family: Calibri;">Persistence.xml in jbpm-human-task-5.1.0.CR1.jar properties changed to</span></span></p><p class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1;"></p><p class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1;"><span style="color: #000000; font-size: 12pt; font-family: Calibri;"><properties><br/>      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/><br/>      <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/><br/>      <property name="hibernate.connection.url" value="jdbc:mysql://192.168.12.99:3306/JBPM_DEMO?useUnicode=true&amp;characterEncoding=UTF-8" /><br/>      <property name="hibernate.connection.username" value="jbpmUser"/><br/>      <property name="hibernate.connection.password" value="jbpm"/><br/>      <property name="hibernate.connection.autocommit" value="false" /><br/>      <property name="hibernate.max_fetch_depth" value="3"/><br/>      <property name="hibernate.hbm2ddl.auto" value="create" /><br/>      <property name="hibernate.show_sql" value="false" /><br/>    </properties></span></p><p class="MsoListParagraphCxSpLast" style="text-indent: -0.25in; margin: 0in 0in 10pt 0.5in; mso-list: l0 level1 lfo1;"></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><div class="mcePaste" id="_mcePaste" style="position: absolute; top: 0px; left: 0px;"></div></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/611069#611069">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>