5 Replies Latest reply on Sep 29, 2010 3:06 PM by menegazzo

    How to programmatically list deploy folders

    menegazzo Newbie

      I want to create a new xml (or properties) file with some values needed by one module.


      My question is:

      How can i programmatically list the deploy folders under a given configuration? (default or standard, for example)

      The idea is to check these folders when the module is loaded, trying to find the xml file.


      //example (class names are fictitious)
      List<DeploymentFolder> = SomeJBossService.getDeploymentFolders("default");


      I tried to lookup DeploymentManager, with success, but seems it does not have the services i need, only things like redeploy(), start(), stop().


      Any help will be very appreciated