3 Replies Latest reply on May 15, 2018 9:41 AM by stephan_b

    LDAP datasource config? (8.2.1 Final)

    stephan_b

      I am trying to setup an LDAP datasource in WildFly 8.2.1 Final (required because of software compatibility). I want to move connection setup and pooling out of my code, and into the AS if at all possible.

       

      I haven't been able to find a stable setup. I am able to use <external-context>, and access my LDAP resource that way by looking up the JNDI. Unfortunately that connection is subject to CommunicationExceptions and SocketExceptions that aren't remedied by the AS. Nothing is reconnected automatically.

       

      I can't seem to setup a datasource connection pool because that entire module seems to be tailored to JDBC only.

       

      Any suggestions on how I can get a stable LDAP data source, one way or another?

        • 1. Re: LDAP datasource config? (8.2.1 Final)
          stephan_b

          Bumping this up. Is this even possible within WildFly?

          • 2. Re: LDAP datasource config? (8.2.1 Final)
            pmm

            What do you mean with LDAP datasource? As far was I know datasources are intended for javax.sql.DataSource ie. JDBC. Such an LDAP datasource would require an LDAP JDBC driver.

             

            Or do you want to bind an LDAP tree to a JNDI tree?

            • 3. Re: LDAP datasource config? (8.2.1 Final)
              stephan_b

              Yes. I meant "datasource" as a more generic term. My apologies. In essence, I was hoping for a built-in method in WildFly that would not only allow me to connect to a configured LDAP context but to keep it up and always available as a connection pool. Is there any way for WildFly to do this?

              I'm trying to avoid writing my own connection pool code if there is an internal way to get this done.