|
From: Kirill M. <ki...@ma...> - 2004-06-04 15:59:01
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Estes, James D - St. Louis, MO wrote: | Example: | You have an Application Context XML file that contains your DAO beans, | but you want your JUnit tests to run with a different dataSource (dbcp) | than your actual web application (jndi). So you have 3 xml files: the | main dao xml, a dbcp dataSource xml file, and a jndi dataSource xml | file. | With the include approach, my dao file would directly point to the | implementation I want, and I would have to change it (or use ant to do | it for me) when I switch between the 2 environments. ~ To be honest, I've imlemented the import just for this situation. ~ But from the other side - I have 2 main Application Context XML files - ~ one for tests and one for production. Each contains dataSource specifics. ~ And each includes "generic" configuraton file which contains beans common ~ for these two environments. ~ So no need to switch et all. ~ Regards, ~ KIR - -- Kirill Maximov (aka KIR) | http://www.maxkir.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAwJw9E0YZ3264U5QRAhTuAJ4iuNEsTaawQ9/9+A3DDvahQDOV8gCfSQoY edchfor67HVIWM5RYGoNqQ8= =320W -----END PGP SIGNATURE----- |