I have the exact same need. I want to access an LDAP server at some times instead of a database. Is there a CMP for LDAP, connection pools to LDAP server etc. in JBoss
No. You might have some trouble getting cmp since AFAIK ldap semantics/queries are not exactly sql.
Quite a few people have proposed a jca connector to ldap. It would probably be pretty easy to write if you know how to use ldap. Let me know if you want some advice on how to proceed.