[jboss-dev-forums] [Design of JCA on JBoss] - Re: JcaXAResourceRecovery
jhalliday
do-not-reply at jboss.com
Thu May 22 09:43:02 EDT 2008
OK, I'm inclined to go with the XAResourceRecovery / XAResourceRecoveryRegistry outlined above for now and see how it works out. Changes to the contents of the array of resources between recovery passes may cause problems, but we'll revisit that if it does. I think it's more likely that the array will contain just a single resource in most cases though.
I also prefer to avoid a lifecycle for resources e.g. 'close()'. The existing recovery mechanism in JBossTS has lifecycle issues so I'm tending towards a stateless design at the moment if only because anything different is good :-) If a connector needs to clean up a resource for some reason it can just unregister and re-register. Short of stopping the recovery process, there is no reason why the transaction manager would ever be done with a resource. As long as the transaction server is alive it should keep querying periodically to see if there are any new problems. Paranoia is a good thing.
Adrian, I've checked in the new interface files to the integration trunk. Please look them over, modify if you wish and put out a new integration module release if you have time. Otherwise I'll try and figure out how to do it tomorrow.
http://jira.jboss.com/jira/browse/JBAS-5541
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152685#4152685
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152685
More information about the jboss-dev-forums
mailing list