persistence@glassfish.java.net

Dynamically Adjusting Persistence.xml For DB Path?

From: digi_pixel <napperley_at_gmail.com>
Date: Mon, 31 Dec 2007 16:45:10 -0800 (PST)

Is it possible to have the persistence.xml file with the "toplink.jdbc.url"
property set to a relative path? There is a high possibility that the client
might want to move the database to a more suitable location. If it is
possible to set the property to a relative path then it would not matter
where the database is located.

Should relative paths fail to work then I will have to supply a separate
Java program that manually adjusts persistence.xml every time the DB is
moved to a different location (I would prefer to avoid this if possible).
Derby is being used as the embedded DB (entire DB is contained in a single
directory) for a standalone desktop application which is deployed via Web
Start.

-- 
View this message in context: http://www.nabble.com/Dynamically-Adjusting-Persistence.xml-For-DB-Path--tp14563115p14563115.html
Sent from the java.net - glassfish persistence mailing list archive at Nabble.com.