[jboss-dev-forums] [JBoss AS7 Development] - types of deployment errors and their handling

John Bailey do-not-reply at jboss.com
Mon Aug 30 13:23:04 EDT 2010


John Bailey [http://community.jboss.org/people/johnbailey] replied to the discussion

"types of deployment errors and their handling"

To view the discussion, visit: http://community.jboss.org/message/559585#559585

--------------------------------------------------------------
It may be good to clarify the current process being used for deployments.  The process for deployments is as follows:
1. Create a sub-batch for the deployment
2.  Create a high-level service that represents the deployment (parent service)
3. Add a sub-batch level dependency on the deployment service created in step 2

Having a high-level service for the deployment allows the deployment to be stopped/started/removed in a single unit based on the the batch level dependency.  

There are a couple additions that could be made to the process to add richer failure handling.  One would be to add a sub-batch level listener that would watch for service start failures and decide whether to stop the whole deployment or to allow a partial deployment service start.  This could then be a user provided configuration to decide how to handle partial starts. The second addition would be to add support to roll-back the services added to the batch if any activation errors occur prior to the batch installation.  This could be driven with the same user configuration to allow partial deployments.  This would require an API addition to batches in MSC.  

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/559585#559585]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100830/68bcfa6a/attachment.html 


More information about the jboss-dev-forums mailing list