users@glassfish.java.net

persistence-context-ref in ejb-jar.xml

From: <glassfish_at_javadesktop.org>
Date: Mon, 21 May 2007 13:56:26 PDT

I found in the book "Enterprise Java Beans 3.0" on the page 326 example how to define
persistence-context-ref inside of "ejb-jar.xml"
But looks like ejb-jar.xml doesn't support this tag.
How to define inside EJB module xml based persistence-context-ref?
Everybody suggest to use web.xml for it.
I don't think that is good idea to use references to persistence units inside web module.
If name of the persistence unit changed that will effect configuration data on web module level. In ideal situation web module doesn't have to know about persistence units.

Thank you,
Vladimir
[Message sent by forum member 'vladperl' (vladperl)]

http://forums.java.net/jive/thread.jspa?messageID=218206