-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Date: Thu, 23 May 2002 12:44:19 -0400 (EDT)
> From: Jessica Perry Hekman <[EMAIL PROTECTED]>
>
> > JDO jdo = new JDO();
> > jdo.setClassLoader(theOneClassLoaderYouWant);
> > jdo.setConfiguration(getClass().getResource("/database.xml").toString());
> > jdo.setDatabaseName("clownbike");
> > db = jdo.getDatabase();
> > db.begin();
>
> JDO jdo = new JDO();
> jdo.setDatabaseName("clownbike");
> jdo.setConfiguration(getClass().getResource("/database.xml").toString());
> jdo.setClassLoader(getClass().getClassLoader());
> db = jdo.getDatabase();
>
> Okay, this is interesting:
Don't set the database name until _after_ you set the configuration.
Try that. Look at my example... steps are
1) set class loader
2) set configuration
3) set database name
You're doing it backwards.
Try it this way:
JDO jdo = new JDO();
jdo.setClassLoader(getClass().getClassLoader());
jdo.setConfiguration(getClass().getResource("/database.xml").toString());
jdo.setDatabaseName("clownbike");
db = jdo.getDatabase();
- --
Virtually,
Ned Wolpert <[EMAIL PROTECTED]>
D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public key at http://www.keyserver.net
iD8DBQE87SIxiysnOdCML0URAitnAJ4q/+F/Zwh/8MRO+LyQDF6kcTH1OwCdFqtE
guj9RYm4MFAUY+bnb7CbNYg=
=FI35
-----END PGP SIGNATURE-----
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev