Package org.jboss.deployers.spi.management

Examples of org.jboss.deployers.spi.management.ManagementView.removeComponent()


      ManagedComponent remove = mgtView.getComponent("ProfileServiceTestRemoveDataSource", locaDSType);
      assertNotNull(remove);
      ManagedComponent test2 = mgtView.getComponent("ProfileServiceTestDataSource2", locaDSType);
      assertNotNull(test2)
      // Remove
      mgtView.removeComponent(remove);
     
      // Redeploy
      DeploymentProgress progress = getDeploymentManager().redeploy(test1.getDeployment().getName());
      progress.run();
     
View Full Code Here


        ManagedComponent managedComponent = getManagedComponent();
        if (LOG.isDebugEnabled()) {
            LOG.debug("Removing " + getResourceDescription() + " with component " + toString(managedComponent) + "...");
        }
        ManagementView managementView = getConnection().getManagementView();
        managementView.removeComponent(managedComponent);
        ManagedDeployment parentDeployment = managedComponent.getDeployment();

        if (parentDeployment.getComponents().size() > 1 || !parentDeployment.getChildren().isEmpty()) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("Redeploying parent deployment '" + parentDeployment.getName()
View Full Code Here

      ManagedComponent remove = mgtView.getComponent("ProfileServiceTestRemoveDataSource", locaDSType);
      assertNotNull(remove);
      ManagedComponent test2 = mgtView.getComponent("ProfileServiceTestDataSource2", locaDSType);
      assertNotNull(test2)
      // Remove
      mgtView.removeComponent(remove);
      mgtView.process();
     
      // Redeploy
      DeploymentProgress progress = getDeploymentManager().redeploy(test1.getDeployment().getName());
      progress.run();
View Full Code Here

         // Remove
         component = md.getComponent("testRemoveQueue");
         assertNotNull(component);
        
         //
         mgtView.removeComponent(component);
         redeploy(component.getDeployment().getName());
        
         // Check removed
         mgtView = getManagementView();
         component = mgtView.getComponent("testRemoveQueue", QueueType);
View Full Code Here

         // Remove
         component = md.getComponent("testRemoveTopic");
         assertNotNull(component);
        
         //
         mgtView.removeComponent(component);
         redeploy(component.getDeployment().getName());
        
         mgtView = getManagementView();
         component = mgtView.getComponent("testRemoveTopic", TopicType);
         assertNull("topic removed", component);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.