Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3877

Allow to configure jpa pool max connections in juice module

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.8.0
    • jpa
    • None

    Description

      When using the juice JPA module, the configuration is read from `james-database.properties` by the JPAConfiguration class. In doing so it creates `openjpa.*` properties which are then consumed by the entity manager factory.

      Among these properties `openjpa.ConnectionFactoryProperties` is used to configure the underlying apache dbcp connection pool.

      While it is already aware of some properties, it doesn't allow for configuring the `MaxTotal` which is at 8 by default (my quota is 5 )

      The list and use of all the properties  is documented at https://commons.apache.org/proper/commons-dbcp/configuration.html

      Adding parsing for more properties is pretty easy and could be a nice entry point to beginner contributors even though I couldn't figure out how to run the tests within my IDE

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jeantil Jean Helou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h