Package org.jboss.deployers.spi.management

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


       
        ProfileServiceUtil.convertConfigurationToManagedProperties(managedProperties, resourceConfig, resourceContext.getResourceType(), managedComponent.getName());

        try {
          managementView.updateComponent(managedComponent);
        } catch (Exception e) {
          LOG.error("Unable to update component [" //$NON-NLS-1$
              + managedComponent.getName() + "] of type " //$NON-NLS-1$
              + componentType + ".", e); //$NON-NLS-1$
          report.setStatus(ConfigurationUpdateStatus.FAILURE);
View Full Code Here


          }
        }
      }

      try {
        managementView.updateComponent(managedComponent);
        managementView.load();
      } catch (Exception e) {
        LOG.error("Unable to update component ["
            + managedComponent.getName() + "] of type "
            + componentType + ".", e);
View Full Code Here

          .getProperties();

      ProfileServiceUtil.convertConfigurationToManagedProperties(managedProperties, resourceConfig, resourceContext.getResourceType(), null);

      try {
        managementView.updateComponent(managedComponent);
      } catch (Exception e) {
        LOG.error("Unable to update component [" //$NON-NLS-1$
            + managedComponent.getName() + "] of type " //$NON-NLS-1$
            + componentType + ".", e); //$NON-NLS-1$
        report.setStatus(ConfigurationUpdateStatus.FAILURE);
View Full Code Here

  protected void updateComponent(ManagedComponent managedComponent)
      throws Exception {
    log.trace("Updating " + this.name + " with component " //$NON-NLS-1$ //$NON-NLS-2$
        + managedComponent.toString() + "..."); //$NON-NLS-1$
    ManagementView managementView = getConnection().getManagementView();
    managementView.updateComponent(managedComponent);

  }

  @Override
  public void deleteResource() throws Exception {
View Full Code Here

          ManagedProperty mappedRoleNameMp = managedObject.getProperty("mappedRoleNames"); //$NON-NLS-1$
          mappedRoleNameMp.setValue(convertListOfStringsToMetaValue(mappedRoleNameList));
        }

        try {
          managementView.updateComponent(managedComponent);
          managementView.load();
        } catch (Exception e) {
          LOG.error("Unable to update component [" //$NON-NLS-1$
              + managedComponent.getName() + "] of type " //$NON-NLS-1$
              + componentType + ".", e); //$NON-NLS-1$
View Full Code Here

      assertTrue("MapCompositeMetaType", value.getMetaType() instanceof MapCompositeMetaType);
     
      MapCompositeValueSupport cValue = (MapCompositeValueSupport) value;
      cValue.put("testKey", new SimpleValueSupport(SimpleMetaType.STRING, "testValue"));
     
      mgtView.updateComponent(dsMC);

      mgtView = getManagementView();
      dsMC = getManagedComponent(mgtView, compType, jndiName);
      configProperty = dsMC.getProperty("config-property");
      assertNotNull(configProperty);
View Full Code Here

     
      property.setValue(SimpleValueSupport.wrap(21));
     
      // TODO test more properties.
     
      managementView.updateComponent(component);
   }

}
View Full Code Here

         CompositeValue collection = (CompositeValue) configProps.getValue();
         configProps.setValue(collection);
        
        
         // update component
         mgtView.updateComponent(mc);
        
        
         // See if the changes are reflected in the managedView after a reload
         mgtView = getManagementView();
        
View Full Code Here

      property.setValue(SimpleValueSupport.wrap(34));
     
      property = mc.getProperty("max-pool-size");
      property.setValue(SimpleValueSupport.wrap(34));
     
      mgtView.updateComponent(mc);
    
   }
  
  
   public void testNestedDS() throws Exception
View Full Code Here

         assertEquals("prepared-statement-cache-size: "+ property.getValue(), SimpleValueSupport.wrap(32), property.getValue());
         // change value
         property.setValue(SimpleValueSupport.wrap(34));
        
         // updateComponent and process()
         mgtView.updateComponent(mc);
        
         //
         // Update 2nd DataSource
         md = null;
         for(ManagedDeployment d : deployment.getChildren())
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.