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