[jboss-jira] [JBoss JIRA] (AS7-2275) Deployment error should result when ambiguous injection is specified
Scott Marlow (Commented) (JIRA)
jira-events at lists.jboss.org
Wed Nov 9 14:47:45 EST 2011
[ https://issues.jboss.org/browse/AS7-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641516#comment-12641516 ]
Scott Marlow commented on AS7-2275:
-----------------------------------
>From this forum post (http://community.jboss.org/thread/152958), it sounds like JBoss 4 worked like this jira proposes (via check in org.jboss.ejb3.enc.DeploymentPersistenceUnitResolver). Then JBoss 5/6 changed that and we are talking about changing back. I agree that JBoss 4 was better but want to understand more.
I certainly don't mind requiring applications to be more concise about which persistence.xml definition that they wish to use. I'm also unsure if AS7 will use the same persistence.xml that AS5/6 does.
> Deployment error should result when ambiguous injection is specified
> --------------------------------------------------------------------
>
> Key: AS7-2275
> URL: https://issues.jboss.org/browse/AS7-2275
> Project: Application Server 7
> Issue Type: Bug
> Components: JPA / Hibernate
> Reporter: Stuart Douglas
> Assignee: Scott Marlow
>
> If no name is specified PersistenceUnitSearch.resolvePersistenceUnitSupplier will return a PU at random, rather than throwing an exception if more than one PU is found.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list