JPA; out-of-container; multiple persistent.xml files

[Out-of-container,]

1. Can JPA handle multiple persistent units defined in multiple persistent.xml files?

(If the files are in the classpath.) In other words, if it can't find a unitName given when instantiating the EntityManagerFactory, should it check the classpath for additional persistent.xml files?

2. With mutiple jars (each with its own set of entities and persistent.xml) in the classpath, should one client program be able to get an entitymanager for any persistent unit and operate on its entities as if they were all in one jar with all units defined in one persistent.xml?

Thanks

nat

[634 byte] By [nnatgrossa] at [2007-11-27 5:56:16]
# 1
It should be yes and yes.regards,-marina
jdcmarinaa at 2007-7-12 16:26:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Thatt's great.Thank you much.nat
nnatgrossa at 2007-7-12 16:26:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...