Spring LDAP authenticate method with Pooling - UnsupportedOperationException
2015-06-29 16:40
591 查看
1、
I'm using Spring LDAP 2.0.0.RELEASE and am getting an error using the new ldapTemplate.authenticate(LdapQuery, password) method with ldap pooling turned on. I get the error:
java.lang.UnsupportedOperationException: Not supported for this implementation
I only get this error when I have the ldap:pooling tag in my applicationContext.xml
In order to authenticate the user the ContextSource performs a bind, which is accomplished by creating a new connection with the specified
distinguished name and password. Due to this, these connections cannot be pooled.
2、解决方案contextSource用两种,平常的用pool的,鉴权的用非pool的
I'm using Spring LDAP 2.0.0.RELEASE and am getting an error using the new ldapTemplate.authenticate(LdapQuery, password) method with ldap pooling turned on. I get the error:
java.lang.UnsupportedOperationException: Not supported for this implementation
I only get this error when I have the ldap:pooling tag in my applicationContext.xml
In order to authenticate the user the ContextSource performs a bind, which is accomplished by creating a new connection with the specified
distinguished name and password. Due to this, these connections cannot be pooled.
2、解决方案contextSource用两种,平常的用pool的,鉴权的用非pool的
相关文章推荐
- Java之数组array和集合list、set、map
- java基础学习之(二):Java中的关键字
- Spring MVC 读取静态资源时404错误
- java中static{}语句块详解
- Java程序设计实用教程(第四版,叶贺亚)考试复习题-纯属个人思想
- 深入浅出 Java Concurrency(二)—锁机制(一)
- Spring factorybean
- 解决spring+c3p0数据库连接一直增加的问题
- java基础-多线程
- JAVA之JNDI初步理解
- Java中的Filter
- Idea_从Eclipse转Intellij IDEA
- Spring 配置方式
- struts2.1笔记06:struts2开发环境的搭建实际操作出现的问题
- 深入浅出 Java Concurrency (一) ----原子操作
- 【Spring学习笔记-MVC-14】Spring MVC对静态资源的访问
- spring中使用 @value 简化配置文件的读取
- struts2ActionContextCleanUp的作用
- struts2 使用拦截器记录异常日志
- webService之(一)java原生态服务端