Examples of JavaConfig


Examples of com.sun.enterprise.config.serverbeans.JavaConfig

    /**
     * Sets the debug-options attribute of the java-config element.
     */
    private final void setDebugOptions(String options) throws Exception
    {
        JavaConfig jvmConfig = getJavaConfigBean();
        jvmConfig.setAttributeValue(ServerTags.DEBUG_OPTIONS, options);
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JavaConfig

    /**
     * Gets the debug-options attribute of the java-config element.
     */
    private final String getDebugOptions() throws Exception
    {
        JavaConfig jvmConfig = getJavaConfigBean();
        return jvmConfig.getAttributeValue(ServerTags.DEBUG_OPTIONS);
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JavaConfig

    private final JavaConfig getJavaConfigBean() throws Exception
    {
//ms1        Server server = (Server) super.getBaseConfigBean();
//ms1        assert server != null;
        Config          config  = (Config) super.getConfigBeanByXPath(ServerXPathHelper.XPATH_CONFIG);
        JavaConfig jvmConfig = config.getJavaConfig();
        jvmConfig.setConfigContext(super.getConfigContext());
        return jvmConfig;
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JavaConfig

            jmsService = (JmsService)ConfigBeansFactory.getConfigBeanByXPath(
                configContext, ServerXPathHelper.XPATH_JMS_SERVICE);
       
            if ((jmsService != null) && (jmsService.isEnabled()))  {
                JMSAdmin  jmsAdmin = null;
                JavaConfig  javaConfig;
                    String    java_home = null,
                    domainName = null,
                        mqInstanceName = null,
                        mqBin = null,
                    argArray[] = new String [ 4 ];

                javaConfig = (JavaConfig)ConfigBeansFactory.getConfigBeanByXPath(
                configContext, ServerXPathHelper.XPATH_JAVACONFIG);
                java_home = javaConfig.getJavaHome();

                mqBin = System.getProperty("com.sun.aas.imqBin");
                domainName = ServerManager.instance().getDomainName();

                jmsAdmin = IASJmsUtil.getJMSAdminFactory().getJMSAdmin();
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JavaConfig

            element.setClasspath(classpath);
        if(nativeLibraryPath!=null)
            element.setNativeLibraryPath(nativeLibraryPath);
        if(enabled!=null)
            element.setEnabled(enabled.booleanValue());
        JavaConfig  javaConfig  = (JavaConfig)getBaseConfigBean();
        javaConfig.setProfiler(element);
       
        getConfigContext().flush();
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JavaConfig

    This operation deletes Profiler according to id if it connected to current HTTP Service.
    @throws ConfigException in case of failure.
     */
    public void deleteProfiler() throws ConfigException
    {
        JavaConfig  javaConfig  = (JavaConfig)getBaseConfigBean();
        javaConfig.setProfiler(null);
        getConfigContext().flush();
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JavaConfig

    This operation returns true   if  Profiler connected to current HTTP Service.
    @throws ConfigException in case of failure.
     */
    public boolean isProfilerExist() throws ConfigException
    {
        JavaConfig  javaConfig  = (JavaConfig)getBaseConfigBean();
        return  (javaConfig.getProfiler()!=null);
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JavaConfig

     * Returns null if no profiler is registered.
     */
    public String getProfiler() throws ConfigException
    {
        String profilerName = null;
        JavaConfig  javaConfig  = (JavaConfig)getBaseConfigBean();
        Profiler profiler = javaConfig.getProfiler();
        if (profiler != null)
        {
            profilerName = profiler.getName();
        }
        return profilerName;
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JavaConfig

    /**
    This operation returns list of JvmOptions  connected to this class.
     */
    public String[] getJvmOptions() throws ConfigException
    {
        JavaConfig  javaConfig  = (JavaConfig)getBaseConfigBean();
        return javaConfig.getJvmOptions();
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JavaConfig

    /**
    This operation returns list of JvmOptions  connected to this class.
     */
    public void setJvmOptions(String[] options) throws ConfigException
    {
        JavaConfig  javaConfig  = (JavaConfig)getBaseConfigBean();
        javaConfig.setJvmOptions(options);
        getConfigContext().flush();
    }
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.