BTM
  1. BTM
  2. BTM-111

Connection Customization Required

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.2
    • Labels:
      None
    • Environment:
      JDK 1.6
    • Patch Submitted:
      Yes
    • Number of attachments :
      2

      Description

      The acquired physical connections should be customizable. In our application we need to set some session variables like oracles nls_sort, parallel ddl and also mysqls querycache etc.
      We were using c3p0 before and it has a ConnectionCustomizer interface which is a great solution. I think BTM will be more efficient with this.

        Activity

        Hide
        Ludovic Orban added a comment -

        What kind of customization that isn't possible at the moment are you looking for?

        Show
        Ludovic Orban added a comment - What kind of customization that isn't possible at the moment are you looking for?
        Hide
        Hakan Junior added a comment -

        I need to attach a listener when the pyhsical connection just established and before added to pool. Interface;
        public interface BTMPoolListener

        { public void connectionAcquired(Connection conn); }

        And i will attach it;
        PoolingDataSource ds1 = new PoolingDataSource();
        ds1.addListener(new BTMPoolListenerImpl());

        Show
        Hakan Junior added a comment - I need to attach a listener when the pyhsical connection just established and before added to pool. Interface; public interface BTMPoolListener { public void connectionAcquired(Connection conn); } And i will attach it; PoolingDataSource ds1 = new PoolingDataSource(); ds1.addListener(new BTMPoolListenerImpl());
        Hide
        Hakan Junior added a comment -

        Hi Ludovic,
        I implemented it as we discussed in mails. Since in my opinion a DataSource MUST have a listener so i wanted to share it with you (Please find attacheds).
        Thanks again.

        Show
        Hakan Junior added a comment - Hi Ludovic, I implemented it as we discussed in mails. Since in my opinion a DataSource MUST have a listener so i wanted to share it with you (Please find attacheds). Thanks again.
        Hide
        Ludovic Orban added a comment -

        This will be implemented.

        Show
        Ludovic Orban added a comment - This will be implemented.
        Hide
        Ludovic Orban added a comment -

        This has been implemented with a new ConnectionCustomizer interface.

        I've published a new snapshot 2.1.2 build containing the improvement if you wish to test it by following the instructions at http://docs.codehaus.org/display/BTM/Maven2#Maven2-Earlyversions

        Show
        Ludovic Orban added a comment - This has been implemented with a new ConnectionCustomizer interface. I've published a new snapshot 2.1.2 build containing the improvement if you wish to test it by following the instructions at http://docs.codehaus.org/display/BTM/Maven2#Maven2-Earlyversions

          People

          • Assignee:
            Ludovic Orban
            Reporter:
            Hakan Junior
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: