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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.5.0
    • configuration
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: