You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Manu T George (JIRA)" <ji...@apache.org> on 2006/12/07 19:17:22 UTC
[jira] Commented: (OPENEJB-383) ENC: persistence-unit-ref
[ 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