0

I have created a class to provide connection pooling with OpenDJ. Now i am trying to authenticate a user using another class which picks a connection from the pool.

If I use newAuthenticatedConnectionFactory method to create the pool then it gives UnsupportedOperation exception while it works fine if I use newFixedConnectionPool.

Why is it so? Is bind method not allowed with newAuthenticatedConnectionFactory ?

user3289094
  • 31
  • 1
  • 8

1 Answers1

0

An authenticatedConnectionFactory is a method to obtain a connection on which a well known user is already authenticated. Therefore it's not suited to do other authentication and Bind request.

Ludovic Poitou
  • 4,788
  • 2
  • 21
  • 30