-
15. Re: JBPM Timer Problem
harishpandya Dec 21, 2010 4:34 AM (in response to mputz)when i add entry for the jobexecutor all the jbpm tables got cleaned on redeploying any idea?
-
16. Re: JBPM Timer Problem
mwohlf Dec 21, 2010 6:38 AM (in response to harishpandya)did you check your hibernate.hbm2ddl.auto parameter?
This sounds like it is set to "create-drop"
-
17. Re: JBPM Timer Problem
harishpandya Dec 22, 2010 2:31 AM (in response to mwohlf)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 Dec 22, 2010 2:19 AM (in response to harishpandya)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 Dec 22, 2010 2:39 AM (in response to mwohlf)I also tried with
<property name="hibernate.hbm2ddl.auto">update</property>
which also doesn't worked.
-
20. Re: JBPM Timer Problem
mwohlf Dec 22, 2010 3:04 AM (in response to harishpandya)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 Dec 22, 2010 6:34 AM (in response to mwohlf)thanks a lot.
It worked for "update".
when i comment following code from hibernate config.
<!--mapping resource="org/jbpm/job/CleanUpProcessJob.hbm.xml"/-->