[jboss-dev-forums] [Design of JCA on JBoss] - Re: XAExpectionUnitTestCase Failures/JBossTS/JBoss 4.2

adrian@jboss.org do-not-reply at jboss.com
Mon Jan 29 07:55:37 EST 2007


Also, prehaps the code would be better always invoking the delegate XAResource
with the end() call, but then only log the warning if we are not already destroyed,
e.g.


  |       public void end(Xid xid, int flags) throws XAException
  |       {
  |          try
  |          {
  |             delegate.end(xid, flags);
  |          }
  |          catch (Throwable t)
  |          {
  |             // We log the warning (UNLESS WE ARE ALREADY DESTROYED) and force a rollback
  |             if (cl.getState() != ConnectionListener.DESTROYED)
  |                log.warn("Error ending resource " + cl, t);
  | ...
  | 

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

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



More information about the jboss-dev-forums mailing list