On Wed, 22 May 2002, Ned Wolpert wrote:
> jdo = new JDO();
> jdo.setClassLoader( getClass().getClassLoader() );
> do.setConfiguration(getClass().getResource("/database.xml").toString());
> jdo.setDatabaseName(dbname);
>
> and in my database.xml, I have this for the mapping.xml file:
>
> <mapping href="mapping.xml"/>
>
> and both files are in the webapp classpath, (in
> <appname>/WEB-INF/classes
> in my case, in the top level, so they are
> <appname>/WEB-INF/classes/database.xml
> <appname>/WEB-INF/classes/mapping.xml
This is essentially the same as what I do. I am curious -- how do you
start your servlet engine? I notice that mapping.xml is resolved relative
to the directory in which I run my servlet engine's start script. (I use
Tomcat 4.)
j
---
"Users complain that they receive too much spam, while spammers protest
messages are legal." -InfoWorld
"You do not have to do everything disagreeable that you have a right to
do." -Judith Martin (Miss Manners)
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev