0 Replies Latest reply on Sep 24, 2013 4:22 PM by thomas_k

    Better way to test an ESB archive?

    thomas_k

      Hi,

       

      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:

       

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

       

      Is there an alternative solution?

       

      Thanks for any hints,

      - Thomas