tags:

views:

10

answers:

0

Hi all, we use LDAP for authentication in JBoss and I've been trying to play around with the LDAP connection pooling, but so far have had no success in getting it to work. I'm launching JBoss via an ant target and (based on a number of articles I've read) this contains a series of <jvmarg> entires like so:

 <java classname="org.jboss.Main" fork="yes" dir="${server.jboss.dir}/bin">
    <!-- other options excluded for brevity -->
    <jvmarg value="-Dcom.sun.jndi.ldap.connect.pool=true" />
    <jvmarg value="-Dcom.sun.jndi.ldap.connect.pool.authentication=simple" />
    <jvmarg value="-Dcom.sun.jndi.ldap.connect.pool.maxsize=20" />
    <jvmarg value="-Dcom.sun.jndi.ldap.connect.pool.prefsize=10" />
    <jvmarg value="-Dcom.sun.jndi.ldap.connect.pool.timeout=300000" />
    <jvmarg value="-Dcom.sun.jndi.ldap.connect.pool.debug=fine" />

but these settings seem to be totally ignored - I get nothing on the output regarding the ldap connection pool. I'm hoping that I've just missed something silly, but has anyone else managed to get this working in a similar environment?

I'm running JDK6_21 and JBoss 4.2.1.GA

Thanks in advance, Brian.