2 Replies Latest reply on Nov 25, 2013 1:41 AM by narkh


    narkh Newbie

      Hi, I am new to Arquillian and I'm trying to test remote EJB deployed on Glassfish 3. I've been trying to do it by creating two .war files and merging them finally in 'test.war' with ShrinkWrap. The first of them I created with:


      WebArchive clientWar = ShrinkWrap.create(WebArchive.class, "client.war")

                       .addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")

                       .addClasses(CustomerListDaoRemote.class, CustomerListTest.class);

      But now I am stuck with creating the second .war file and I wonder if it is even possible to make two WebArchives (instead of JavaArchives) and create one 'test.war' from both of them. I've tried something like:




        WebArchive serviceWar = ShrinkWrap

                       .create(WebArchive.class, "service.war")

                       .add(clientWar, "/", ZipExporter.class).addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml")


      return ShrinkWrap.create(WebArchive.class, "test.war").add????

      But it feels like a road to nowhere and I'm still not able to:



        private CustomerListDao customerListDao;

      I would be really grateful for any feedback on this matter.