tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Fernando Planella Gonzalez (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENEJB-1027) Add the application name to the data sources matching heuristics
Date Thu, 10 Sep 2009 18:38:57 GMT

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

Luis Fernando Planella Gonzalez updated OPENEJB-1027:
-----------------------------------------------------

    Description: 
When the data source is not specified in the persistence.xml file, there is an heuristic to
resolve it.
The application name (i.e. ear) should be used in this match, as a fallback, when the current
algorithm can't find the data source.
As suggested by David Blevins at http://mail-archives.apache.org/mod_mbox/openejb-users/200905.mbox/%3CBCA79B46-275F-41D4-898E-35D26973E766@visi.com%3E,
the algorithm should be:
   1. the name set in <jta-data-source> or <non-jta-data-source>
   2. the name of the persistence-unit
   3. the name of the module name (i.e. war, ejb-jar, etc.)
   4. the name of the app name (i.e. ear) 


  was:
When the data source is not specified in the persistence.xml file, there is an heuristic to
resolve it.
The application name (i.e. ear) should be used in this match, as a fallback, when the current
algorithm can't find the data source.
As suggested by David Blevins at http://www.nabble.com/Database-configuration-on-web-application-startup-td23675577.html,
the algorithm should be:
   1. the name set in <jta-data-source> or <non-jta-data-source>
   2. the name of the persistence-unit
   3. the name of the module name (i.e. war, ejb-jar, etc.)
   4. the name of the app name (i.e. ear) 



> Add the application name to the data sources matching heuristics
> ----------------------------------------------------------------
>
>                 Key: OPENEJB-1027
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-1027
>             Project: OpenEJB
>          Issue Type: Improvement
>    Affects Versions: 3.1
>         Environment: Linux, amd64, java 6u13
>            Reporter: Luis Fernando Planella Gonzalez
>
> When the data source is not specified in the persistence.xml file, there is an heuristic
to resolve it.
> The application name (i.e. ear) should be used in this match, as a fallback, when the
current algorithm can't find the data source.
> As suggested by David Blevins at http://mail-archives.apache.org/mod_mbox/openejb-users/200905.mbox/%3CBCA79B46-275F-41D4-898E-35D26973E766@visi.com%3E,
the algorithm should be:
>    1. the name set in <jta-data-source> or <non-jta-data-source>
>    2. the name of the persistence-unit
>    3. the name of the module name (i.e. war, ejb-jar, etc.)
>    4. the name of the app name (i.e. ear) 

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


Mime
View raw message