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/01/28 11:28:59 UTC

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

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


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.


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

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg updated OWB-71:
-----------------------------

    Attachment: OWB-71.patch

Gurkan, please review this patch so I can apply it in the evening if you find it useful.
txs,
strub

> 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.


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

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OWB-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669585#action_12669585 ] 

Mark Struberg commented on OWB-71:
----------------------------------

this is now implemented for a SE environment setup.
The J2EE part and a proper SPI is still missing.

> 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.


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

Posted by "Gurkan Erdogdu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OWB-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gurkan Erdogdu closed OWB-71.
-----------------------------


> 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.


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

Posted by "Mark Struberg (JIRA)" <ji...@apache.org>.
     [ 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.