Examples of updateComponent()


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

         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

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

         assertEquals(property.getValue(), SimpleValueSupport.wrap(22));
         // change
         property.setValue(SimpleValueSupport.wrap(19));
        
         // updateComponent and process()
         mgtView.updateComponent(mc);
      
         // See if the changes are reflected in the managedView after a reload
         mgtView = getManagementView();

         ManagedComponent comp2 = getManagedComponent(mgtView, "ChangedNestedDsJNDIName");
View Full Code Here

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

      ManagedProperty minSize = props.get("min-pool-size");
      minSize.setValue(SimpleValueSupport.wrap(new Integer(13)));
      ManagedProperty maxSize = props.get("max-pool-size");
      maxSize.setValue(SimpleValueSupport.wrap(new Integer(53)));

      mgtView.updateComponent(hsqldb);

      // TODO: Query the mbeans to validate the change
      // TODO: Query the profile service repository for the overriden data
   }
View Full Code Here

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

    protected void updateComponent(ManagedComponent managedComponent) throws Exception {
        if (LOG.isTraceEnabled()) {
            LOG.trace("Updating " + getResourceDescription() + " with component " + toString(managedComponent) + "...");
        }
        ManagementView managementView = getConnection().getManagementView();
        managementView.updateComponent(managedComponent);
        managementView.load();
    }

    // ------------------------------------------------------------------------------
View Full Code Here

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

        return getManagedComponent();
    }

    public void updateBindingManager(ManagedComponent bindingManagerComponent) throws Exception {
        ManagementView managementView = getConnection().getManagementView();
        managementView.updateComponent(bindingManagerComponent);
        managementView.load();
    }

    public String getBindingSetResourceKey(String bindingSetName) {
        return getResourceContext().getResourceKey() + RESOURCE_KEY_SEPARATOR + bindingSetName;
View Full Code Here

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

            ManagedProperty managedProperty = managedProperties.get("security-domain");
            MetaValue metaValue = managedProperty.getValue();
            PropertyAdapter propertyAdapter = PropertyAdapterFactory.getPropertyAdapter(metaValue);
            propertyAdapter.populateMetaValueFromProperty(resourceConfiguration.get("security-domain"), metaValue,
                    resourceConfigurationDefinition.get("security-domain"));
            managementView.updateComponent(managedComponent);
            managementView.load();
        } catch (Exception e) {
            report.setErrorMessage("Resource was created but an error occured while updating security-domain property");
            report.setException(e);
        }
View Full Code Here

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

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

}
View Full Code Here

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

         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

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

      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

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

         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.