You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Timothy Ward (JIRA)" <ji...@apache.org> on 2010/10/13 13:14:32 UTC

[jira] Created: (ARIES-455) Allow the Aries JPA runtime to process WAB files

Allow the Aries JPA runtime to process WAB files
------------------------------------------------

                 Key: ARIES-455
                 URL: https://issues.apache.org/jira/browse/ARIES-455
             Project: Aries
          Issue Type: Improvement
          Components: JPA
    Affects Versions: 0.3
            Reporter: Timothy Ward
            Assignee: Timothy Ward
             Fix For: 0.3


The Aries JPA runtime currently deliberately ignores WAB files because it isn't clear whether they should be processed according to Java EE rules or not.

I propose the following:

* A WAB with a Meta-Persistence header should be treated like any other persistence bundle
* A WAB with no Meta-Persistence header should follow the rules of the OSGi Web Applications specification. Namely the JPA runtime should look for META-INF/persistence.xml in any locations listed on the bundle classpath (or in the root if no classpath is defined).


This is not the normal Java EE behaviour. We will not find META-INF/persistence.xml in any jar in WEB-INF/lib, or in WEB-INF/classes unless it is explicitly on the bundle classpath. This is, however, consistent with normal WAB behaviour and I believe is therefore the correct approach.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Work started: (ARIES-455) Allow the Aries JPA runtime to process WAB files

Posted by "Timothy Ward (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on ARIES-455 started by Timothy Ward.

> Allow the Aries JPA runtime to process WAB files
> ------------------------------------------------
>
>                 Key: ARIES-455
>                 URL: https://issues.apache.org/jira/browse/ARIES-455
>             Project: Aries
>          Issue Type: Improvement
>          Components: JPA
>    Affects Versions: 0.3
>            Reporter: Timothy Ward
>            Assignee: Timothy Ward
>             Fix For: 0.3
>
>
> The Aries JPA runtime currently deliberately ignores WAB files because it isn't clear whether they should be processed according to Java EE rules or not.
> I propose the following:
> * A WAB with a Meta-Persistence header should be treated like any other persistence bundle
> * A WAB with no Meta-Persistence header should follow the rules of the OSGi Web Applications specification. Namely the JPA runtime should look for META-INF/persistence.xml in any locations listed on the bundle classpath (or in the root if no classpath is defined).
> This is not the normal Java EE behaviour. We will not find META-INF/persistence.xml in any jar in WEB-INF/lib, or in WEB-INF/classes unless it is explicitly on the bundle classpath. This is, however, consistent with normal WAB behaviour and I believe is therefore the correct approach.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.