1 2 Previous Next 17 Replies Latest reply on Jul 12, 2015 5:59 AM by maxant Go to original post
      • 15. Re: JCA Adapter & Recovery
        tomjenkinson

        Hi Ant,

         

        Its a different version of the source but here is the message:

        https://github.com/ironjacamar/ironjacamar/blob/master/deployers/src/main/java/org/jboss/jca/deployers/DeployersLogger.java#L171

         

        The think about JBoss logging is that it uses a few variables to end up with the message id it prints out - I have been bitten by that before so usually I would just search for the numeric part of the string, in your case 20016.

         

        Hope that helps you to debug this further,

        Tom

        • 16. Re: JCA Adapter & Recovery
          jesper.pedersen

          You will need a <security> or credentials for the recovery plugin. IronJacamar can't guess, hence the WARN And yes, you need to look in the IronJacamar XSD - not the one for the standard.

          • 17. Re: JCA Adapter & Recovery
            maxant

            I've returned to this problem after some 2 years :-)

             

            After debugging Ironjacamar, I found out that the following configuration means that recovery works:

             

            1. <resource-adapters>
            2.   <resource-adapter id="GenericConnector.rar">
            3.    <archive>
            4.   genericconnector-demo-ear.ear#genericconnector.rar
            5.    </archive>
            6.    <transaction-support>XATransaction</transaction-support>
            7.    <connection-definitions>
            8.    <connection-definition
            9.    class-name=
            10.    "ch.maxant.generic_jca_adapter.ManagedTransactionAssistanceFactory"
            11.    jndi-name="java:/maxant/BookingSystem"
            12.    pool-name="BookingSystemPool">
            13.    <config-property name="id">
            14.   BookingSystem
            15.    </config-property>
            16.    <config-property name="handleRecoveryInternally">
            17.   true
            18.    </config-property>
            19.    <config-property name="recoveryStatePersistenceDirectory">
            20.   ../standalone/data/booking-tx-object-store
            21.    </config-property>
            22.    <xa-pool>
            23.    <min-pool-size>1</min-pool-size>
            24.    <max-pool-size>5</max-pool-size>
            25.    </xa-pool>
            26.    <recovery no-recovery="false">
            27.    <recover-credential>
            28.    <user-name>asdf</user-name>
            29.    <password>fdsa</password>
            30.    </recover-credential>
            31.    </recovery>
            32.    </connection-definition>
            33.   ... one connection-definition per registered commit/rollback callback
            34.    </connection-definitions>
            35.   </resource-adapter>
            36. </resource-adapters>

             

            Lines 22-31 seem to be very important, not just line 6 as I had assumed.

            1 2 Previous Next