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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...