how to configure an LDAP datasource in jboss application server?
posted 5 years ago
I have a jsf1.2 application running on jboss4.2.2 GA and jdk1.5. I need to access the LDAP from my application. Currently, I am doing the following to get the InitialDirContext.
So, here I have to specify the credentials and the server in my java code or in a properties file in my app. I would like to know if I can configure these details in any jboss xml file, like there is for oracle/mysql datasources(oracle-ds.xml and mysql-ds.xml), so that I don't have to change the details in my code and create a new war whenever we have to move to another server.
If someone has done it before, can they please help me out? I searched it online but found documentation for jboss portal. My application not a portal one.