Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] Connection Pooling with JNDISourceAdapter

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] Connection Pooling with JNDISourceAdapter


Chronological Thread 
  • From: Shilen Patel <>
  • To: Tom Barton <>
  • Cc: "Michael R. Gettes" <>,
  • Subject: Re: [grouper-dev] Connection Pooling with JNDISourceAdapter
  • Date: Fri, 10 Aug 2007 15:34:56 -0400

I've created GRP-23.

-- Shilen


Tom Barton wrote:
Would you mind opening a jira issue on this and putting these code bits and perf info in there? Among next steps would be to decide what should be exposed as config settings, and how to expose & parse it.

If you do spend a little time looking into that, I bet you'll run into the main requirement needed to move subject API to v1.0...

Tom

Shilen Patel wrote:
I simply added one line of code into the JNDISourceAdapter.java file in the setupEnvironment() method.

environment.put("com.sun.jndi.ldap.connect.pool", "true");

Though it probably makes sense to have the "true" value come from the sources.xml file instead of hard coded in the class. Also, since I'm using SSL, I added the following to my JAVA_OPTS environment variable:

-Dcom.sun.jndi.ldap.connect.pool.protocol="plain ssl"


-- Shilen




Michael R. Gettes wrote:
I have a stupid question - how does one add connection pooling to the JNDISourceAdapter?

/mrg

On Aug 10, 2007, at 10:47, Shilen Patel wrote:

Hello,

I recall the connection pooling issue with the JNDISourceAdapter being brought up before, but I don't see any Jira issues on that. So I thought I would share some results. Simply by adding connection pooling to the JNDISourceAdapter, I'm seeing a significant performance improvement while making repeated calls to Member.getSubject(). For instance, for a group with 120 members, retrieving the Subject objects for all 120 members resulted in a 60% performance improvement while using connection pooling.

-- Shilen








Archive powered by MHonArc 2.6.16.

Top of Page