In the DTD for database.xml [http://castor.exolab.org/jdo-conf.dtd], it
is said that <mapping> can be the path to mapping.xml relative to the
directory of database.xml, eg if they are in the same directory, it
could be <mapping>mapping.xml</mapping>.

However, this seems only to work if the location of the database.xml
file is specified via:
myJdo.setConfiguration( "http://myhost/myWebapp/etc/database.xml";)

and not by:
myJdo.setConfiguration("c:/etc/database.xml")
or:
myJdo.loadConfiguration(myInputSource) // where myInputSource is
database.xml

Are relative paths for mapping.xml supposed to work in either of the
latter two cases? Is there any way to make it work?
It would be nice not to have to open up URLs to either of these files
such that they could both be in WEB-INF, and hardcoding the full system
path of mapping.xml in database.xml decreases portability.

thanks in advance for your help.

Chris
 
________________________________________________________________________
p l u m b d e s i g n
 
chris pennock | interface developer
157 chambers st ny ny 10007
p.212-285-8600 x484 f.212-285-8999

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to