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(