[jboss-user] [IronJacamar] - Re: Problem with XARecoveryModule.

Adam Ringel do-not-reply at jboss.com
Mon Mar 26 06:30:08 EDT 2012


Adam Ringel [https://community.jboss.org/people/adlepoo] created the discussion

"Re: Problem with XARecoveryModule."

To view the discussion, visit: https://community.jboss.org/message/726258#726258

--------------------------------------------------------------
If anyone is still interested, we modified *ManagedConnectionFactoryDeployment* like so and the issue was resolved:


   private synchronized ManagedConnection open(Subject s) throws ResourceException {
             if (recoverMC == null) {
                       recoverMC = createManagedConnection(s, null);


                       return recoverMC;
             }


             boolean valid = true;
             if(recoverMC instanceof BaseWrapperManagedConnection) {
                       valid = ((BaseWrapperManagedConnection) recoverMC).checkValid();
             }


             if(! valid) {
                       log.info("open - recoverMC is not valid, reopening for deployment: " + toString());
                       close(recoverMC);
                       recoverMC = createManagedConnection(s, null);
             }
             
             return recoverMC;
   }



Also nulled out recoverMC in the stopService method:


   protected void stopService()
   {
      if (recoveryRegistered)
      {
         if (getXAResourceRecoveryRegistry() != null)
         {
            close(recoverMC);


            getXAResourceRecoveryRegistry().removeXAResourceRecovery(this);
            recoveryRegistered = false;


            if (log.isDebugEnabled())
               log.debug("Unregistered for XA Resource Recovery: " + dmd.getJndiName());
         }
      }


            recoverMC = null;
      mcf = null;
      mcfClass = null;
   }
--------------------------------------------------------------

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

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120326/5b5e50cd/attachment.html 


More information about the jboss-user mailing list