[jbpm-dev] [Design of JBoss jBPM] - Re: Undeployment in JBosss Deployer

camunda do-not-reply at jboss.com
Fri Jun 19 06:33:57 EDT 2009


Hi Heiko.

Heiko wrote : 
  | Why should it be different then any other Java EE deployment?
  | 

Basically I think because it is different to other Java EE deployments. The engine itself is a typical Java EE deployment. But the processes are different, it is a persistent long running entity.
Imagine a webshop, you cannot delete all the orders in the database, just because you undeploy the ear with the webshop.

Why do you think deleting running process instances is a good behaviour when undeplyoing? You definitely loose processes instances!

Anyway, suspending the process definition seems to be a good way in the middle. Currently the other jbpm guys agree, all customers I discussed it with agree as well, so I think it is a good way to go.

Heiko wrote : 
  | The way it was written, it did intend additional changes to the core runtime. Especially classloader association upon deployment. In order to get the classloader scoping right, we would need to associate the classloader that the deployer framework provides and not write class info to the database. Similiar to what Bernd did to jbpm3. 
  | 

I agree with you. But this is what is currently done, no?
The tricky thing is still how to bind the class loading right, but this is independant of the other questions, or not?

Heiko wrote : 
  | If we would complete it in that way, the question of deletion versus suspension would become different. 
  | 

I don't get why. In the jbpm 3 deployer (running productive at 1&1) no processes are deleted if you undeploy a process.

Heiko wrote : 
  | I'd say either you complete the deployer or you remove it at all. 
  | 

Okay, I go for it. In GA it will be incubating, so no problem here. I will change it to suspend the process definition, which cannot harm anything.

And later I will come up with a proposal how the Java EE lifecycle can be mapped to the jbpm process deployment/definition lifecycle better (questions like redeployment, get a suspended process instance back to live, exceptions during undeployment, ...). I already have some ideas in my mind and will discuss that with a customer further on later this month. 

So I will take care of the issue. It will just not be there from the beginning but added later on. But I think that is no problem in terms of the GA.

If you think different please let me know...

Cheers
Bernd

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238730#4238730

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238730



More information about the jbpm-dev mailing list