Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EclipseLink/Development/ConfigProfiles"
< EclipseLink | Development
(New page: == Config Profiles Feature == {{123456|bug}} This page captures the functional requirements and design discussion for the addition of Configuration Profiles to EclipseLink === What is a ...) |
m (→Config Profiles Feature) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
== Config Profiles Feature == | == Config Profiles Feature == | ||
− | {{ | + | {{bug|293766}} |
This page captures the functional requirements and design discussion for the addition of Configuration Profiles to EclipseLink | This page captures the functional requirements and design discussion for the addition of Configuration Profiles to EclipseLink | ||
=== What is a Configuration Profile? === | === What is a Configuration Profile? === | ||
− | Example | + | '''Example''': META-INF/eclipselink-config.xml: |
<source lang="xml"> | <source lang="xml"> | ||
+ | <eclipselink-profiles> | ||
+ | <profile name="default"> | ||
+ | <!-- These properties will be added to System prior to session creation --> | ||
+ | <system-property name="org.eclipse." value="" /> | ||
+ | |||
+ | <!-- These allow custom subclasses to be created to enable extended functionaliy --> | ||
+ | <custom-type name="jpa.RepeatableWriteUnitOfWork">mypackage.MyRWUOW</custom-type> | ||
+ | <custom-type name="jdbc.Connector">mypackage.OSGiJDBCConnector</custom-type> | ||
+ | |||
+ | <!-- Platforms declarations and defaults--> | ||
+ | <server-platform name="WebLogic11gR1-PS1">oracle.toplink.eclipselink.pltaform.weblogic.WebLogic11gR1-PS1</server-platform> | ||
+ | <default-server-platform>WebLogic11gR1-PS1</default-server-platform> | ||
+ | </profile> | ||
+ | </eclipselink-profiles> | ||
</source> | </source> | ||
+ | |||
=== Requirements === | === Requirements === | ||
− | * Default and user specified location of configuration file | + | * Add support for an EclipseLink specific configuration file that allows defaults and factory types to be customized using an XML file defined by a provided XSD with secitions for core, jpa, moxy, sdo, & dbws |
− | * Support usage with bundles where | + | * Allow a profile to be specified during creation of a session |
+ | ** JPA: persistence unit property | ||
+ | ** ORM: Session constructors and sessions.xml | ||
+ | ** JAXB: | ||
+ | ** OXM: | ||
+ | ** SDO: | ||
+ | ** DBWS: | ||
+ | * Default and user specified location of configuration file while allowing custom location | ||
+ | * Support usage with bundles where some persistence services (JPA, MOXy, DBWS, SDO) are not necessarily on the classpath |
Latest revision as of 07:08, 19 November 2009
Config Profiles Feature
bug 293766 This page captures the functional requirements and design discussion for the addition of Configuration Profiles to EclipseLink
What is a Configuration Profile?
Example: META-INF/eclipselink-config.xml:
<eclipselink-profiles> <profile name="default"> <!-- These properties will be added to System prior to session creation --> <system-property name="org.eclipse." value="" /> <!-- These allow custom subclasses to be created to enable extended functionaliy --> <custom-type name="jpa.RepeatableWriteUnitOfWork">mypackage.MyRWUOW</custom-type> <custom-type name="jdbc.Connector">mypackage.OSGiJDBCConnector</custom-type> <!-- Platforms declarations and defaults--> <server-platform name="WebLogic11gR1-PS1">oracle.toplink.eclipselink.pltaform.weblogic.WebLogic11gR1-PS1</server-platform> <default-server-platform>WebLogic11gR1-PS1</default-server-platform> </profile> </eclipselink-profiles>
Requirements
- Add support for an EclipseLink specific configuration file that allows defaults and factory types to be customized using an XML file defined by a provided XSD with secitions for core, jpa, moxy, sdo, & dbws
- Allow a profile to be specified during creation of a session
- JPA: persistence unit property
- ORM: Session constructors and sessions.xml
- JAXB:
- OXM:
- SDO:
- DBWS:
- Default and user specified location of configuration file while allowing custom location
- Support usage with bundles where some persistence services (JPA, MOXy, DBWS, SDO) are not necessarily on the classpath