[arquillian-issues] [JBoss JIRA] (ARQ-518) Support @PersistenceContext injection in weld-ee mock container

Trevor Baker (JIRA) jira-events at lists.jboss.org
Mon Jul 23 19:19:07 EDT 2012


    [ https://issues.jboss.org/browse/ARQ-518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12707424#comment-12707424 ] 

Trevor Baker commented on ARQ-518:
----------------------------------

The code needs to use PersistenceProvider.createContainerEntityManagerFactory() instead. I have a sample of that in ARQ-1013. The PU root URL for arquillian uses 'archive:/' protocol which isn't supported by Hibernate so will need to do some tricks to get a URL recognized by the JPA provider. The hack I have in place is get the URL 'file:/.../target/classes'. Be better if can convert arquillian archive to 'vfs:/'

                
> Support @PersistenceContext injection in weld-ee mock container
> ---------------------------------------------------------------
>
>                 Key: ARQ-518
>                 URL: https://issues.jboss.org/browse/ARQ-518
>             Project: Arquillian
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Weld Containers
>            Reporter: Michal Huniewicz
>            Assignee: Michal Huniewicz
>
> I'd like weld-ee container to inject @PersistenceContext.

--
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 arquillian-issues mailing list