[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: New Callback and error handling

adrian@jboss.org do-not-reply at jboss.com
Mon Apr 23 07:36:02 EDT 2007


The code really needs to be refactored such that the core install and
before/after methods (the callbacks currently implement only the after pattern)
are handling atomically and consistently.

e.g. In the pseudo code I posted above:

1) An error in one of the callbacks needs to unwind any previously successful callbacks
already invoked (not all of them) and then do the main uninstall()

2) If there is an error in the main install(), we don't even want to try to reverse the callbacks
since they were never invoked in the first place.

You can find an example of this kind of error handling in the MainDeployer/DeployerWrapper.

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

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



More information about the jboss-dev-forums mailing list