cancel
Showing results for 
Search instead for 
Did you mean: 

Spring auto deployment suppression

balmaceda
Champ in-the-making
Champ in-the-making
Hi All

I have a process resource bundled in a Spring web application (on the classpath) that I have configured to be deployed automatically. Unfortunately it is deploying a new version each time the application itself is redeployed.
If I remember correctly the documentation states that auto-deployment will first check to see if the resource has changed before redeploying as a different version. It seems to me that the fact that the application server (JBoss 7) extracts the files into a temporary folder for deployment causes Activiti to think that the resource has changed.
Is there any way I can suppress this behaviour while still packaging the resources with my application? Ideally Activity would load new process definitions but leave existing ones as they are.

Thanks
Martin
5 REPLIES 5

balmaceda
Champ in-the-making
Champ in-the-making
Is there some way I can maybe handle this manually?

balmaceda
Champ in-the-making
Champ in-the-making
Solved it by creating my own SpringProcessEngineConfiguration

I really this the default spring conf class should have an option to identify resources only by classnames and not by the absolute path -that way it wont be a problem on containers that deploy to temporary folders

jbarrez
Star Contributor
Star Contributor
I'm not sure if that solution won't create 'false positives'. On what would you want to check to make sure it is a new deployment?

sureshtellakula
Champ in-the-making
Champ in-the-making
Please send tutorial or sample program of auto deployment. I am unable to deploy with auto-deploy.

regards,
suresh

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Suresh,

Here you can find jUnit test for Spring auto deploy.
https://github.com/Activiti/Activiti/blob/master/modules/activiti-spring/src/test/java/org/activiti/...

Regards
Martin