Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Needed: Alternative to JNDI to connect to LDAP

 
Bryan Hughes
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently using JNDI to connect and interact with Sun's LDAP server. However, during performance testing, we've noticed that as the number of user records increase, the speed in which results are returned from the LDAP dramatically decreases.
At this point, after reading about latency issues with JNDI, I'm looking for alternatives. Can someone please comment on their experience with other products that have worked? I'm open to almost anything (openLDAP, Novelle, etc...), so all feedback is appreciated.
 
Tonny Tssagovic
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bryan Hughes:
after reading about latency issues with JNDI.

Why don't u cache the JNDI Lookups with something like a service locator?
 
Bryan Hughes
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't u cache the JNDI Lookups with something like a service locator?
Can you direct me to some examples of what you're describing? Some of this is new territory for me.
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For service locator pattern details(and other J2EE patterns) refer to
"Core J2EE Patterns" from Sun(by Deepak Alur etc)
Dan.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you certain you're not overloading your LDAP server? We've often seen that the bottleneck is there rather than in JNDI. Watch the CPU utilization numbers on your LDAP server to be sure...
Kyle
 
Tonny Tssagovic
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bryan Hughes:
Can you direct me to some examples of what you're describing? Some of this is new territory for me.

You can check out the j2ee patterns at Service Locator and I recommend you to download EJB design patterns (free from The server side) You need to register however, and the book is a good read even if you are not using EJBs. (Just skim though it and check the EJB factory pattern which is an EJB specific implementation of the service locator,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic