3 Replies Latest reply on Mar 14, 2003 9:01 PM by davidjencks

    JCA->LDAP Connector?

      Has anyone written a JCA->LDAP connector? I'm currently writing one, but I was curious if I'm re-inventing the wheel. It will be based off of the Netscape API, with Connection pooling and the whole bit.

      Steve

        • 1. Re: JCA->LDAP Connector?
          davidjencks

          I have a recollection that someone worked on this a while back, but can't remember whether it was finished or not. I recommend searching this forum and the dev mailing list.

          • 2. Re: JCA->LDAP Connector?

            Okay thanks. I have one technical question:

            Do I need to implement my own ConnectionPool for the RA? The sample JCA seems to plug into JBoss's connection pooling. What exactly are the hooks for this?

            Steve

            • 3. Re: JCA->LDAP Connector?
              davidjencks

              Pooling is handled by the ConnectionManager. The spec says you should include a default connection manager with your adapter, but if you intend to use it only with an app server this is not really necessary. In any case a default ConnectionManager doesn't need to do pooling. You need to implement ManagedConnectionFactory, ManagedConnection, and something like cci.ConnectionFactory and cci.Connection: there may be better choices of actual interface. If you support transactions you will have to implement either spi.LocalTransaction or XAResource.