Package com.sun.enterprise.admin.server.core.mbean.config.naming

Examples of com.sun.enterprise.admin.server.core.mbean.config.naming.ConfigMBeanNamingInfo


        return new ManagedAdminServerInstance();
    }

    private Object createGenericConfigMBean(ObjectName objectName) throws MBeanConfigException
    {
        ConfigMBeanNamingInfo mbeanInfo = new ConfigMBeanNamingInfo(objectName);
        mbeanInfo.setAdminContext(mAdminContext);
        return mbeanInfo.constructConfigMBean();
    }
View Full Code Here


   
    private Object findGenericConfigBean(ObjectName objectName, String instanceName)
    {
        /* Ordinary Config Mbean - use ConfigMBeanNaming */
        Object bean = null;
        ConfigMBeanNamingInfo mbeanInfo = null;
        try
        {
            mbeanInfo = new ConfigMBeanNamingInfo(objectName);
        }
        catch (MBeanConfigException mce)
        {
            _logger.log(Level.FINE, "mbean.config.admin.naming_not_found",
                        new Object[]{objectName.toString(), mce.getLocalizedMessage()} );
        }
        if(mbeanInfo!=null)
        {
            String xPath = mbeanInfo.getXPath();
            try
            {
                ConfigContext ctx = getConfigContext(instanceName);
                bean = ConfigBeansFactory.getConfigBeanByXPath(ctx, xPath);               
            }
View Full Code Here

    }

    public String[] getServlets() throws J2EEWebModuleException
    {
        ConfigMBeanNamingInfo namingInfo = this.getConfigMBeanNamingInfo();
        String [] locParams = namingInfo.getLocationParams();
        String applicationName = locParams[1];
        String moduleName      = locParams[2];

        try
        {
View Full Code Here

     * @throws MBeanConfigException - if mbean creation failed.
     */
    public AttributeList getGenericAttributeDefaultValues(String instanceName, String mbeanType, String[] attrNames) throws MBeanConfigException
    {
        sLogger.log(Level.FINEST, MSG_GET_ATTRIBUTE_DEFAULT, new String[]{instanceName, mbeanType});
        ConfigMBeanNamingInfo info = new ConfigMBeanNamingInfo(mbeanType, new String[] {instanceName}, false);      
        ConfigMBeanBase mbean = info.constructConfigMBean();
        AttributeList attrList = new AttributeList();
        for(int i=0; i<attrNames.length; i++)
        {
            Object defaultValue;
            try
View Full Code Here

        if(idx<1) {
      String msg = localStrings.getString( "admin.server.core.mbean.config.genericconfigurator_cannot_extract_attribute_name_from_dotted_notation", dottedStringName );
            throw new MalformedNameException( msg );
    }
      
        ConfigMBeanNamingInfo info = new ConfigMBeanNamingInfo(dottedStringName.substring(0,idx));
        ArrayList list = new ArrayList();
        list.add(info.getObjectName());
        return list;
    }
View Full Code Here

    /*
     Binds MBean with Config Bean
     **/
    public void initialize(String mbeanType, String[] locations) throws MBeanConfigException
    {
        ConfigMBeanNamingInfo namingInfo;
        try
        {
            namingInfo = new ConfigMBeanNamingInfo(mbeanType, locations);
        }
        catch (MBeanConfigException mce)
        {
            throw mce;
        }
View Full Code Here

    /*
     Binds MBean with Config Bean
     **/
    public void initialize(String dottedName) throws MBeanConfigException
    {
        ConfigMBeanNamingInfo namingInfo;
        try
        {
            namingInfo = new ConfigMBeanNamingInfo(dottedName);
        }
        catch (MBeanConfigException mce)
        {
            throw mce;
        }
View Full Code Here

    /*
     Binds MBean with Config Bean
     **/
    public void initialize(ObjectName objectName) throws MBeanConfigException
    {
        ConfigMBeanNamingInfo namingInfo;
        try
        {
            namingInfo = new ConfigMBeanNamingInfo(objectName);
        }
        catch (MBeanConfigException mce)
        {
            throw mce;
        }
View Full Code Here

        return getBeansByType(ModulesXMLHelper.EJB_TYPE_ENTITY);
    }

    private String[] getBeansByType(int ejbType) throws J2EEEjbJarModuleException
    {
        ConfigMBeanNamingInfo namingInfo = this.getConfigMBeanNamingInfo();
        String [] locParams = namingInfo.getLocationParams();
        String applicationName = locParams[1];
        String moduleName      = locParams[2];
       
       
        try
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.server.core.mbean.config.naming.ConfigMBeanNamingInfo

Copyright © 2018 www.massapicom. 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.