-
1. Re: persistence.xml
gavin.king Jan 21, 2006 4:30 PM (in response to matthew.edwards)I'm not the packaging expert here, so you would need to refer to what the spec says on this, and then cross your fingers that our current implementation conforms to that. (I would guess it probably does not yet support all packaging options available in the spec.)
See section 6.2 of the persistence spec.
My understanding is that:
* If you want to share a persistence unit between multiple EJB3 jars, you would define the persistence.xml in the root of the EAR instead of the EJB3 jar. This would let you share it across all jars.
* It would be best to make sure that PUs have different names, but this is not a requirement
* You can (only) have associations between entities in the same PU. The actual jar is irrelevant.
* Seam does not care. A Seam "instance" is scoped to a war.