Do you manually create cayenne-testing.xml or make a copy of an existing
cayenne.xml? I saw where you could pass in a different name to the
configuration, but this just means more glue code and manual steps to
support development (unless I'm missing something).
Thanks,
/dev/mrg
-----Original Message-----
From: Mike Kienenberger [mailto:mkienen..laska.net]
Sent: Wednesday, July 13, 2005 5:27 PM
To: cayenne-use..bjectstyle.org
Subject: Re: Interesting Tomcat (et al) Issue ...
"Gentry, Michael (Contractor)" <michael_gentr..anniemae.com> wrote:
> I don't think addClassPath would work since it would append to the
> CLASSPATH and my cayenne.xml #2 is already in the CLASSPATH, it is
just
> overshadowed by #1.
You're right. I wasn't thinking clearly.
You can change the name it looks for. First optional parameter for
Configuration. I use it to guarantee that my unit tests never access my
non-unit-test datasources.
new DefaultConfiguration("cayenne-testing.xml")
This archive was generated by hypermail 2.0.0 : Thu Jul 14 2005 - 09:04:40 EDT