1 Reply Latest reply on Jul 31, 2014 2:20 AM by robert.panzer

    No way to add classes or packages to ResourceAdapterArchive

    jeffmaury

      I have a Maven project for my resource adapter that builds  a RAR archive that contains classes, libraries as JAR files and the resource adapter class.

      I want to use Arquillian to unit test my project but it seems it is no possible to add classes or packages to a ResourceAdapterArchive ?

      Is there any reason for that ?

       

      Thanks

      Jeff

        • 1. Re: No way to add classes or packages to ResourceAdapterArchive
          robert.panzer

          Hi Jeff,

           

          ResourceAdapter archives have this structure::

           

          my.rar

          + META-INF

          |   +- ra.xml

          + myrarimpl.jar

              +- mymanagedconnectionfactory.class

                   ...

           

          When using ResourceAdapters that are embedded in an EnterpriseArchive I often put the myrarimpl.jar into the EnterpriseArchive as a library so that the resource adapter API is available to the application.

          Then the ear will have this structure:

          my.ear

          + lib

          |    + myrarimpl.jar

          + my.rar

               + META-INF

                   + ra.xml

           

           

          Kind regards,

          Robert