1 2 Previous Next 21 Replies Latest reply on Dec 22, 2010 6:34 AM by harishpandya Go to original post
      • 15. Re: JBPM Timer Problem
        harishpandya

        when i add entry for the jobexecutor all the jbpm tables got cleaned on redeploying any idea?

        • 16. Re: JBPM Timer Problem
          mwohlf

          did you check your hibernate.hbm2ddl.auto parameter?

          This sounds like it is set to "create-drop"

          • 17. Re: JBPM Timer Problem
            harishpandya

            Thanks for Reply.

             

            The entry in hibernate.cfg is like

             

                                <property name="hibernate.hbm2ddl.auto">create</property>

             

            It only say's create and not to drop.

             

            I also tried with

                            <property name="hibernate.hbm2ddl.auto">update</property>

            which also doesn't worked.

            Also the tables are cleaned up only when jobexecutor entry is added in web.xml.

            Without the entry it works fine but as i want to use timer i need jobexecutor.

            • 18. Re: JBPM Timer Problem
              mwohlf

              change your hibernate.hbm2ddl.auto

              "create" is not what you want since it gives you a clean new schema on each deploy,

              a redeploy is probably triggered whenever you change web.xml

              • 19. Re: JBPM Timer Problem
                harishpandya

                I also tried with

                                <property  name="hibernate.hbm2ddl.auto">update</property>

                which  also doesn't worked.

                • 20. Re: JBPM Timer Problem
                  mwohlf

                  next step would be to use "hibernate.show_sql" to figure out what exactly is going on and what deletes your data

                  • 21. Re: JBPM Timer Problem
                    harishpandya

                    thanks a lot.

                     

                    It worked for "update".

                    when i comment following code from hibernate config.

                    <!--mapping resource="org/jbpm/job/CleanUpProcessJob.hbm.xml"/-->

                    1 2 Previous Next