Sure. I put my stuff in WEB-INF/classes (database.xml and mapping.xml) In database.xml, I map to the mapping.xml file like this: <mapping href="mapping.xml"/> which is the normal way. Then, in my code, I get a database instance like this:
JDO jdo = new JDO();
jdo.setCOnfiguration(getClass().getResource("/database.xml").toString());
jdo.setDatabaseName("myDatabase");
and the jdo instance is ready for use. Does that help?
On Mon, 2002-01-21 at 06:13, Antony wrote:
> Hi:
> In JDO example provided, I recognized that mapping.xml and
> config.xml files are to be placed within
> the same directory with example class files, or use a path relative to
> the class file. However, in a web application,
> in order to be portable, where should all configuration files be put?
> In WEB-INF/classes ? I have no idea.
> Can someone give me a working example of a web application using Castor?
>
> Regards,
> Antony
--
Virtually,
Ned Wolpert <[EMAIL PROTECTED]>
D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
msg04388/pgp00000.pgp
Description: PGP signature
