You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2009/02/12 12:41:59 UTC

[jira] Resolved: (OWB-71) support @PersistenceUnit JPA injection

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

Mark Struberg resolved OWB-71.
------------------------------

    Resolution: Fixed

@PersistenceUnit injetion works so far in a standard environment via Persistence#getEntityManagerFactory().

In J2EE environments, we have to implement the 

org.apache.webbeans.spi.JPAService

to get the EntityManagerFactory from the EJB container.

> support @PersistenceUnit JPA injection
> --------------------------------------
>
>                 Key: OWB-71
>                 URL: https://issues.apache.org/jira/browse/OWB-71
>             Project: OpenWebBeans
>          Issue Type: Sub-task
>          Components: Injection and Lookup, Java EE Integration
>    Affects Versions: M1
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>             Fix For: M2
>
>         Attachments: OWB-71.patch
>
>
> create support for injecting EntityManagerFactory
> Examples: 
> 1.)
> @PersistenceUnit
> private EntityManagerFactory emf;
> 1.)
> @PersistenceUnit(unitName="replicationdb")
> private EntityManagerFactory emf;

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