2 Replies Latest reply on Feb 25, 2013 3:52 AM by nickarls

    How to get the context root and all children of a deployed ear

    su_jbossuser

      Hi All,

       

      In Jboss 5 , we used to have something as follows:

       

      ManagedDeployment depl = managementView.getDeployment(repositoryname);

      List<ManagedDeployment> allChildren = depl.getChildren();

      allChildren.add(depl);           

      for(ManagedDeployment d : allChildren)

      {

                    if(d.getTypes().contains("war"))

                    {

                     ManagedProperty contextRootProp = d.getProperty("contextRoot");

       

       

      I am unable to find the equivalent classes in Jboss 7.1 -  do we have a way to get the contextroot and also the children of the deployed programatically?