[jboss-jira] [JBoss JIRA] Updated: (JBAS-9034) Applications should be able to inject a persistence context/unit from a separate deployment by using a fully scoped (appname#puname) reference

Scott Marlow (JIRA) jira-events at lists.jboss.org
Fri Mar 18 09:01:46 EDT 2011


     [ https://issues.jboss.org/browse/JBAS-9034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Marlow updated JBAS-9034:
-------------------------------

    Description: 
A few things needs to happen for this to work.

1.  Deployments that use container managed JPA support, need to be recognized by the JPADependencyProcessor.  JPADependencyProcessor will inject the JPA dependencies into the deployment, so that it can access JPA stuff.

2.  JPADependencyProcessor currently runs during DEPENDENCIES phase but we don't recognize annotations (JPAAnnotationParseProcessor) until later during the POST_MODULE phase.

Either we need to change JPAAnnotationParseProcessor to not use Attachments.COMPOSITE_ANNOTATION_INDEX (so we can move JPAAnnotationParseProcessor to the PARSE phase) or Attachments.COMPOSITE_ANNOTATION_INDEX needs to be built during the PARSE phase (again, allowing moving of JPAAnnotationParseProcessor to the PARSE phase).



  was:This is mostly about creating unit tests to ensure that it works and continues to work.



> Applications should be able to inject a persistence context/unit from a separate deployment by using a fully scoped (appname#puname) reference
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-9034
>                 URL: https://issues.jboss.org/browse/JBAS-9034
>             Project: JBoss Application Server
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 7.0.0.Beta1
>            Reporter: Scott Marlow
>             Fix For: 7.0.0.Beta2
>
>
> A few things needs to happen for this to work.
> 1.  Deployments that use container managed JPA support, need to be recognized by the JPADependencyProcessor.  JPADependencyProcessor will inject the JPA dependencies into the deployment, so that it can access JPA stuff.
> 2.  JPADependencyProcessor currently runs during DEPENDENCIES phase but we don't recognize annotations (JPAAnnotationParseProcessor) until later during the POST_MODULE phase.
> Either we need to change JPAAnnotationParseProcessor to not use Attachments.COMPOSITE_ANNOTATION_INDEX (so we can move JPAAnnotationParseProcessor to the PARSE phase) or Attachments.COMPOSITE_ANNOTATION_INDEX needs to be built during the PARSE phase (again, allowing moving of JPAAnnotationParseProcessor to the PARSE phase).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list