cancel
Showing results for 
Search instead for 
Did you mean: 

demo processes redeployment

nommyravian
Champ in-the-making
Champ in-the-making
Hi,
I'm using activiti 5-10 and each time when I restart the demo server, I see a new demo processes archive deployed. How can I stop this? Activiti 5-9 never behaved like this. Is it a feature or left by some activiti 5-10 developer mistakenly? Smiley Happy

Best regards,
Salman
7 REPLIES 7

jbarrez
Star Contributor
Star Contributor
Yes. Search the forum, the question has been asked before.

You have to switch the database properties file to use the not-in-memory H2 database.

nommyravian
Champ in-the-making
Champ in-the-making
Hi,
It was because of non-persistent h2 db. I found the solution here http://forums.activiti.org/en/viewtopic.php?f=6&t=4688.

best regards,
Salman

nommyravian
Champ in-the-making
Champ in-the-making
Hi,
I think that it's not an issue of persistent database. Each time when I start a demo server, it deploys a new demo process which means I can see more than 10 demo processes in activiti explorer now. The previous demo process stays but a new start up deploys a new demo process. How to stop it?

best regards,
Salman

jbarrez
Star Contributor
Star Contributor
Comment out the 'demoGenerator' bean in the spring config of the webapp.

nommyravian
Champ in-the-making
Champ in-the-making
Hi, Thank you for the reply.

Comment out the 'demoGenerator' bean in the spring config of the webapp.
Where can I find this bean property? I found and commented out the bean demoDataGenerator in applicationContext.xml file at path, {Activiti-Home}/setup\files\webapps\activiti-explorer.war\WEB-INF but nothing happened.
Can you give me the path of the file where this bean is defined? Thank you.

best regards,
Salman

jbarrez
Star Contributor
Star Contributor
Commenting that bean must be done in the WEB-INF/applicationContext of the running tomcat (not the setup). Check the 'apps' folder for a tomcat folder (and then in the webapps folder)

nommyravian
Champ in-the-making
Champ in-the-making
Thank you. It solved the issue  Smiley Very Happy