1 Reply Latest reply on Aug 30, 2013 12:14 PM by Anil Allewar

    Recovery plugin not getting invoked with JBoss EAP6.1.0Alpha

    Anil Allewar Newbie



      I have a custom resource adapter and have writter a recover-plugin class for it. This used to work fine with JBoss AS 7.1.1 final and the recover plugin class was getting called. However with JBoss EAP6.1.0Alpha, the custom RecoveryPlugin extension is not being called and EAP reverts to the default RecoveryPlugin which causes the connection to be closed every time. I checked up the "jboss-as-resource-adapters_1_1.xsd" file and it has the same structure as the 1.0 xsd. Can anyone tell me if something has to be done differently for JBoss EAP6.1.0?


      Here is the recovery tag definition under the connection-definition.



      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">








                               <connection-definition class-name="*.*ManagedConnectionFactory" jndi-name="java:/OW5000/OW_TEIID_UTM14_USOF" enabled="true" use-java-context="true" pool-name="OW_TEIID_UTM14_USOF">

                                  <config-property name="project">



                                  <config-property name="sid">










                                  <recovery no-recovery="false">

                                      <recover-plugin class-name="*.*RecoveryPlugin"/>








        • 1. Re: Recovery plugin not getting invoked with JBoss EAP6.1.0Alpha
          Anil Allewar Newbie

          The issue seems to be with recover tag not using the parent security domain and explicitly needing "recover-credential" element under the "recovery" element. The "jboss-as-resource-adapters_1_1.xsd" file has the following information about the recover-credentials tag


          <xs:element name="recover-credential" type="credentialType" minOccurs="0" maxOccurs="1">
                        Specifies the security options used when creating a connection during recovery.
                        Note: if this credential are not specified the security credential are used for recover too


          This implies that if the recover credentials are not specified then security credentials should be used for recover and I don't need to specify it. This seems to be broken in JBoss EAP 6.1.0 (I am using Alpha but 6.1.0final also has the same issue); and was working in AS 7.1.1 final.


          Currently I am able to have the recover plugin getting called correctly by adding the recover-credential element under recover element.


          <recovery no-recovery="false">
                      <recover-plugin class-name="***.*RecoveryPlugin"/>