File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes how to configure an LDAP datasource in jboss application server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "how to configure an LDAP datasource in jboss application server?" Watch "how to configure an LDAP datasource in jboss application server?" New topic
Author

how to configure an LDAP datasource in jboss application server?

Sushma Sharma
Ranch Hand

Joined: Jun 02, 2005
Posts: 139
Hi,

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.

Thanks,
Sushma

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to configure an LDAP datasource in jboss application server?