You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Dominik Przybysz (Jira)" <ji...@apache.org> on 2026/10/03 20:06:00 UTC

[jira] [Closed] (ARIES-736) Aries does not take into account the concept of complete/incomplete Persistence Units

     [ https://issues.apache.org/jira/browse/ARIES-736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dominik Przybysz closed ARIES-736.
----------------------------------

Closing issues of released artifacts

> Aries does not take into account the concept of complete/incomplete Persistence Units
> -------------------------------------------------------------------------------------
>
>                 Key: ARIES-736
>                 URL: https://issues.apache.org/jira/browse/ARIES-736
>             Project: Aries
>          Issue Type: Bug
>          Components: JPA
>    Affects Versions: 0.3
>            Reporter: Christoph Läubrich
>            Assignee: Christian Schneider
>            Priority: Major
>             Fix For: jpa-2.1.0
>
>
> The OSGi spec states (r4.2 127.3.1):
> "Entity Manager Factory service - Provides an EntityManagerFactory object that depends on a complete
> Persistence Unit. That is, it is associated with a registered Data Source Factory service."
> The current behaiviour is, that aries registers a Entity Manager Factory service regardles of the precence of a matching Data Source Factory service (Also see 127.5.3 Data Source Factory Service Matching).
> If no such matching is performed, it alternateively must register a Entity Manager Factory Builder service (not currently supported by Aries see ARIES-735 for reference).
> What infact is unclear to me is:
> 127.5.3 states that: "Once the Data Source Factory is obtained, the JPA Provider must obtain a DataSource object. This
> Data Source object must then be used for all relational database access."
> It does not state how this DataSource could be handed over to the PersistenceProvider for later usage.
> It might be suitable to insert a level of indirection here:
> - Aries just reads the persitence units and registers an Entity Manager Factory Builder service
> - PersistencProvider specific bundles match these with the required data source and register the Entity Manager Factory service



--
This message was sent by Atlassian Jira
(v8.20.10#820010)