I am looking for a more localized deployment process. To me, doing something like this
when my application starts up:
ProcessDefinition pd = ProcessDefiniot.parseXmlInputStream(<classpath resource>);
context.deployProcessDefinition(pd);
is the ideal way of deploying. To us, this has the following advantages:
1) No external dependencies - I do not depend on a deployment script, that may fail,
leaving me with an older version of process definition.
2) Localility - the process definition xml is packaged in the same archive as the rest of
my code.
Like I mentioned, the only problem with this approach is that a new process definition
record is inserted into the database when each instance of our app starts up (we are
distributed across donzens of hosts).
Ideal solution would be having context.deployProcessDefinitionIfDifferent(pd) method, that
will simply do a field by field comparison of the latest version in the database and do a
no-op if they're equal.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122348#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...