*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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?
 
Similar Threads
How to do Ananymous Authentication with LDAP
glassfish to JBoss communication through RMI
JavaMail newbie
Unknown SMTP host for gmail
JNDI Initial Context resource file V. runtime