Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.PropertyResolver.resolve()


            countAcceptorThreads = Integer.parseInt(val);
       
            val = httpListener.getPort();           
            PropertyResolver pr = new PropertyResolver(InstanceHangAction.configCtx,
                                                       inst.getName());
            String resolvedPort = pr.resolve(val);
            listenerPort = Integer.parseInt(resolvedPort);
            /* the default value used by LB; which has been factored in from
             *proxy config - 5 seconds
             */
            connectTimeout = 5 * 1000;
 
View Full Code Here


            String server)
  throws ConfigException
    {
  String rawPort = l.getRawAttributeValue("port");
  PropertyResolver pr = new PropertyResolver(configCtx, server);
  return pr.resolve(rawPort);
    }
}
View Full Code Here

                instEnv.getName());
        String appLocation;
        if ((appLocation = app.getLocation()) == null) {
            throw new ConfigException("appLocation was null");
        };
        String resolvedPath = resolver.resolve(appLocation);
        return resolvedPath;
       
    }
   
    public boolean isEnabled(String appId) throws ConfigException {
View Full Code Here

            }
            if(targetName == null) {
                targetName = ApplicationServer.getServerContext().getInstanceName();
            }
            PropertyResolver pr = new PropertyResolver(cc, targetName);
            String resolvedPort = pr.resolve(portNb);
           
            int port = Integer.parseInt(resolvedPort);
            if (hl.isSecurityEnabled()) {
                wsi.setHttpsVS(new VirtualServerInfo("https", targetHostName, port));               
            } else {
View Full Code Here

        if(instanceName==null)
        {
            instanceName=MBeanRegistryFactory.getAdminContext().getServerName();
        }
        PropertyResolver resolver = new PropertyResolver(getConfigContext(), instanceName);
        return resolver.resolve(value, bResolvePathesAsWell);
    }
    /*
     * This operation allows to obtain third part software properties set such as jdbc-resources, connectors etc.
     * Since this set depend on what kind (brand) of software it is for, attributeList parameter defines attributes
     * for undesrstanding what kind of software used.
View Full Code Here

    }
    private String resolveTokensForDas(String value) throws ConfigException
    {
        String instanceName=MBeanRegistryFactory.getAdminContext().getServerName();
        PropertyResolver resolver = new PropertyResolver(getConfigContext(), instanceName);
        return resolver.resolve(value, true);
    }
   
   
    public boolean deleteAuthRealm(String name, String targetName)
        throws MBeanException
View Full Code Here

                    loc = ((EjbModule)bean).getLocation();
                }
                if(bean instanceof J2eeApplication ||
                                                 bean instanceof EjbModule) {
                    PropertyResolver pr = new PropertyResolver(_ctx, _dasName);
                    String rLocation = pr.resolve(loc);

                    // opening the application.xml descriptor
                    FileArchive in = new FileArchive();
                    in.open(rLocation);
                    ApplicationDeploymentDescriptorFile rootDD =
View Full Code Here

                }
                if(bean instanceof J2eeApplication) {

                    PropertyResolver pr = new PropertyResolver(_ctx, _dasName);
                    String rLocation = pr.resolve(loc);

                    // opening the application.xml descriptor
                    FileArchive in = new FileArchive();
                    in.open(rLocation);
                    ApplicationDeploymentDescriptorFile rootDD =
View Full Code Here

            if (bean != null) {
                if (bean instanceof J2eeApplication) {
                    // application repository root
                    String loc = ((J2eeApplication) bean).getLocation();
                    PropertyResolver pr = new PropertyResolver(_ctx, _dasName);
                    String rLocation = pr.resolve(loc);

                    // opening the application.xml descriptor
                    FileArchive in = new FileArchive();
                    in.open(rLocation);
View Full Code Here

            if (bean != null) {
                if (bean instanceof J2eeApplication) {
                    // application repository root
                    String loc = ((J2eeApplication) bean).getLocation();
                    PropertyResolver pr = new PropertyResolver(_ctx, _dasName);
                    String rLocation = pr.resolve(loc);

                    // opening the application.xml descriptor
                    FileArchive in = new FileArchive();
                    in.open(rLocation);
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.