0 Replies Latest reply on Sep 24, 2013 4:22 PM by Thomas Küstermann

    Better way to test an ESB archive?

    Thomas Küstermann Newbie



      We're using JBoss EAP 5.1 and I would like to use Arquillian to perform some integration tests on an ESB archive. My question is what's the best way to deploy the ESB archive? I currently deploy the ESB as module of an EAR archive:


      public static EnterpriseArchive createDeployment() throws Exception {
          JavaArchive archive = ShrinkWrap.createFromZipFile(
                 JavaArchive.class, new File("target/fancy-service.esb"))
          ApplicationDescriptor desc = Descriptors.create(ApplicationDescriptor.class)
              // ...
          EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "fancy-service-esb.ear")
              .setApplicationXML(new StringAsset(desc.exportAsString()));
          return ear;


      Is there an alternative solution?


      Thanks for any hints,

      - Thomas