Package fr.norsys.mapper.console.mapping

Examples of fr.norsys.mapper.console.mapping.Config


      mapperConfig.addVariable(variable);
    }

    Connection connection = application.getConnection();
    mapperConfig.getJndiMapper().getSource().setName(connection.getName());
    Config config = mapperConfig.getJndiMapper().getSource().getConfig();
    config.getProperties().add(
        new Property(Context.INITIAL_CONTEXT_FACTORY,
            "com.sun.jndi.ldap.LdapCtxFactory"));
    config.getProperties().add(
        new Property(Context.PROVIDER_URL, connection.getUrl()));
    config.getProperties().add(
        new Property(Context.SECURITY_PRINCIPAL, connection.getUser()));
    config.getProperties()
        .add(
            new Property(Context.SECURITY_CREDENTIALS, connection
                .getPass()));
    config.getProperties().add(
        new Property("jndi.connection.pool.minPoolSize", connection
            .getMinPoolSize()));
    config.getProperties().add(
        new Property("jndi.connection.pool.maxPoolSize", connection
            .getMaxPoolSize()));
    config.getProperties().add(
        new Property("jndi.connection.pool.timeout", connection
            .getTimeoutPool()));
    config.getProperties().add(
        new Property("jndi.connection.name", connection.getName()));

    mapperConfig.getSubConfig().setName(
        "http://norsys.fr/framework-ldap/jndi-configuration.dtd");
    mapperConfig.getSubConfig().setClasse(
View Full Code Here

TOP

Related Classes of fr.norsys.mapper.console.mapping.Config

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.