You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "David Blevins (JIRA)" <ji...@apache.org> on 2006/11/27 06:04:20 UTC

[jira] Created: (OPENEJB-383) ENC: persistence-unit-ref

ENC: persistence-unit-ref
-------------------------

                 Key: OPENEJB-383
                 URL: http://issues.apache.org/jira/browse/OPENEJB-383
             Project: OpenEJB
          Issue Type: Sub-task
            Reporter: David Blevins




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (OPENEJB-383) ENC: persistence-unit-ref

Posted by "Dain Sundstrom (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-383?page=all ]

Dain Sundstrom closed OPENEJB-383.
----------------------------------

    Resolution: Fixed
      Assignee: Manu T George  (was: Dain Sundstrom)

Thanks for the patches Manu T George.

> ENC: persistence-unit-ref
> -------------------------
>
>                 Key: OPENEJB-383
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-383
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: container system, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Manu T George
>             Fix For: 3.0
>
>         Attachments: patch[1]_r485581_OPENEJB-383.patch, patch[2]_r485581_OPENEJB-383.patch, PersistenceUnit.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (OPENEJB-383) ENC: persistence-unit-ref

Posted by "Dain Sundstrom (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-383?page=all ]

Dain Sundstrom reassigned OPENEJB-383:
--------------------------------------

    Assignee: Dain Sundstrom

> ENC: persistence-unit-ref
> -------------------------
>
>                 Key: OPENEJB-383
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-383
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: container system, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Dain Sundstrom
>             Fix For: 3.0
>
>         Attachments: patch[1]_r485581_OPENEJB-383.patch, patch[2]_r485581_OPENEJB-383.patch, PersistenceUnit.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (OPENEJB-383) ENC: persistence-unit-ref

Posted by "Manu T George (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-383?page=all ]

Manu T George updated OPENEJB-383:
----------------------------------

    Attachment: patch[2]_r485581_OPENEJB-383.patch

Patch with the tests as instructed by David B

> ENC: persistence-unit-ref
> -------------------------
>
>                 Key: OPENEJB-383
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-383
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: container system, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>             Fix For: 3.0
>
>         Attachments: patch[1]_r485581_OPENEJB-383.patch, patch[2]_r485581_OPENEJB-383.patch, PersistenceUnit.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-383) ENC: persistence-unit-ref

Posted by "Manu T George (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OPENEJB-383?page=comments#action_12456506 ] 
            
Manu T George commented on OPENEJB-383:
---------------------------------------

Example from the spec

For example,
...
<enterprise-beans>
<session>
...
<ejb-name>InventoryManagerBean</ejb-name>
<ejb-class>
com.wombat.empl.InventoryManagerBean
</ejb-class>
...
<persistence-unit-ref>
<description>
Persistence unit for the inventory management
application.
</description>
<persistence-unit-ref-name>
persistence/InventoryAppDB
</persistence-unit-ref-name>
<persistence-unit-name>
../lib/inventory.jar#InventoryManagement
</persistence-unit-name>
</persistence-unit-ref>
...
</session>
</enterprise-beans>

Here if the path is relative to the EAR we will never have to give ../ as all paths will start from the ear root. Also only the jars in a single EAR are required to be referenced so we will not have to give ../ at all.



> ENC: persistence-unit-ref
> -------------------------
>
>                 Key: OPENEJB-383
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-383
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: container system, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>             Fix For: 3.0
>
>         Attachments: PersistenceUnit.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (OPENEJB-383) ENC: persistence-unit-ref

Posted by "Manu T George (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-383?page=all ]

Manu T George updated OPENEJB-383:
----------------------------------

    Attachment: patch[1]_r485581_OPENEJB-383.patch

patch[1]_r485581_OPENEJB-383.patch

This patch fixes issues with the previous one which caused test failures. All the tests are passing with this patch. Pls use this and not the other one


> ENC: persistence-unit-ref
> -------------------------
>
>                 Key: OPENEJB-383
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-383
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: container system, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>             Fix For: 3.0
>
>         Attachments: patch[1]_r485581_OPENEJB-383.patch, PersistenceUnit.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (OPENEJB-383) ENC: persistence-unit-ref

Posted by "Manu T George (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-383?page=all ]

Manu T George updated OPENEJB-383:
----------------------------------

    Attachment: PersistenceUnit.patch

Hi David,
       I have attached a patch. I used a different logic for path resolution. This is because on going through the spec I found that the paths should be relative to the jar containing the ejb and not the ear. ref 16.10.2

The Application Assembler specifies the path name of the root of the referenced persistence
unit and appends the name of the persistence unit separated from the path name by # . The path name is
relative to the referencing application component jar file. In this manner, multiple persistence units with
the same persistence unit name may be uniquely identified when persistence unit names cannot be
changed.




> ENC: persistence-unit-ref
> -------------------------
>
>                 Key: OPENEJB-383
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-383
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: container system, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>             Fix For: 3.0
>
>         Attachments: PersistenceUnit.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira