Results 1 to 6 of 6

Thread: Connection Pooling

  1. #1
    Join Date
    Sep 2006
    Posts
    17

    Default Connection Pooling

    Is there a way to pass jndi connections to the framework? The Connection Pooling used is not adequate as it is JVM wide. We need to deploy multiple applications in WebLogic Server and do not want to share the same connection pool for all applications.

  2. #2
    Join Date
    Mar 2005
    Location
    Landskrona, Sweden
    Posts
    505

    Default

    I'm not sure what you're trying to do. Are you going to implement your own connection pool or do you just want to create your DirContext instances elsewhere?

    Anyway, if you want to create/get your DirContext instances differently you should probably look at creating a custom ContextSource implementation.
    Mattias Arthursson
    Jayway AB (www.jayway.se)
    Spring-LDAP project member

  3. #3
    Join Date
    Sep 2006
    Posts
    17

    Default

    Quote Originally Posted by rasky
    I'm not sure what you're trying to do. Are you going to implement your own connection pool or do you just want to create your DirContext instances elsewhere?

    Anyway, if you want to create/get your DirContext instances differently you should probably look at creating a custom ContextSource implementation.

    I am looking to use my own connection pool. I would like to be able to tell the framework the pool i wish to use. Maybe the JDK pool is good enough, or maybe i need to use a different connection pool.

  4. #4
    Join Date
    Mar 2005
    Location
    Landskrona, Sweden
    Posts
    505

    Default

    It all depends on how your pool is implemented. How would you typically manage the pool if you were outside of the Spring LDAP framework?

    I think I'll need more information in order to give any proper advise on the subject.
    Mattias Arthursson
    Jayway AB (www.jayway.se)
    Spring-LDAP project member

  5. #5
    Join Date
    Sep 2006
    Posts
    17

    Default

    Quote Originally Posted by rasky
    It all depends on how your pool is implemented. How would you typically manage the pool if you were outside of the Spring LDAP framework?

    I think I'll need more information in order to give any proper advise on the subject.

    I have my own ConnectionPool Interface. I have two implementations of that Interface, one using JNDI, and one using the Netscape LDAP SDK.

  6. #6
    Join Date
    Mar 2005
    Location
    Landskrona, Sweden
    Posts
    505

    Default

    What does your ConnectionPool interface return? If it is DirContext instances, we're back to my initial suggestion - you'll need to create your own ContextSource implementation which would ask your ConnectionPool interface for DirContext instances. It shouldn't be very difficult to do.

    If it's on a lower level I'm not sure if I can help you.
    Mattias Arthursson
    Jayway AB (www.jayway.se)
    Spring-LDAP project member

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •