persistence@glassfish.java.net

cofiguring different orm.xml files

From: Johannes Hoehne <rt30_at_retail-sc.com>
Date: Wed, 2 Jan 2008 13:54:32 +0100

Hi,
we use the same EAR file for different servers. Each server uses a
different data base schema. As it is no problem to use different databases
with no extra configuration (different targets of the jndi name) it is not
possible to use different schemes. At the moment we tell the server by
system property the name of the configuration file of our (old fashion)
persistence framework. So we can deploy all the different configuration
files within one EAR.
So far so good but we want to use JPA now. Is there any possibility to
redirect the file name of the orm.xml. Maybe be an (jndi) property in the
ebj-jar.xml?
Please help

Thanks

Johannes Hoehne
--
RSC Commercial Services OHG
Wanheimer Strasse 70, D-40468 Duesseldorf
Registergericht: Duesseldorf, HRA 12655