Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1887

<ServiceProvider> inheritance to reduce redundant config in service-jar.xml files

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0
    • Component/s: configuration
    • Labels:
      None

      Description

      The idea is that instead of doing this as we currently do:

      <ServiceProvider id="My DataSource" types="DataSource">
      JdbcDriver org.hsqldb.jdbcDriver
      JdbcUrl jdbc:hsqldb:file:data/hsqldb/hsqldb
      UserName sa
      Password
      JtaManaged true
      </ServiceProvider>

      <ServiceProvider id="My Unmanaged DataSource" types="DataSource">
      JdbcDriver org.hsqldb.jdbcDriver
      JdbcUrl jdbc:hsqldb:file:data/hsqldb/hsqldb
      UserName sa
      Password
      JtaManaged false
      </ServiceProvider>

      You can inherit from another <ServiceProvider> element and update the defaults

      <ServiceProvider id="My DataSource" types="DataSource">
      JdbcDriver org.hsqldb.jdbcDriver
      JdbcUrl jdbc:hsqldb:file:data/hsqldb/hsqldb
      UserName sa
      Password
      JtaManaged true
      </ServiceProvider>

      <ServiceProvider id="My Unmanaged DataSource" parent="My DataSource">
      JtaManaged false
      </ServiceProvider>

        Attachments

          Activity

            People

            • Assignee:
              dblevins David Blevins
              Reporter:
              dblevins David Blevins
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: