[jboss-user] [EJB 3.0] - Re: Exploded jar containing persistence.xml with jar-file el
do-not-reply at jboss.com
Mon Mar 31 07:18:02 EDT 2008
you are confusing 2 use cases.
When deploying your exploded jars you're effectively deploying 2 enterprise applications.
Those don't share resources, including persistence units.
When deploying them both packaged into a single ear file they are part of a single enterprise application and can share resources.
In your hack you're actually creating 2 persistence units with the same name, each a part of its own enterprise application and existing only in that context.
This is no oversight on the part of either the expert committee who designed the JEE5 spec or JBoss, it's a quite deliberate design decision.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140086#4140086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140086
More information about the jboss-user