[jboss-dev-forums] [Design of JCA on JBoss] - Re: JcaXAResourceRecovery

jhalliday do-not-reply at jboss.com
Fri Jun 20 12:47:45 EDT 2008


Hi guys

We are looking at ways of solving a current problem around recovery: it's not always clear which resource manager is misbehaving, which makes it difficult to know where to look for the source of the trouble.

All the transaction manager can do is print out the Xid, or the String representation of the XAResource if it's lucky and not actually crashed yet. But these structures contain little meaningful information for the user.

What we really want to know is the name of the Resource Manager that Resource belongs to i.e. the JNDI name or similar - something the user can relate back to a -ds.xml file or such.

To accomplish that the Transaction Manager either needs to be provided with the information up front (extra fields in the JcaXAResourceWrapper?) or have some way to ask the app server for it e.g. SomeIntegrationAPI.getJNDINameForXAResource(XAResource xar) or better still getJNDINameForXid(Xid xid)

Any thoughts on how we could go about providing this useful debugging aid?

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

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



More information about the jboss-dev-forums mailing list