>> Example: Can I have my spring beans using cocoon xml parser? If so how 
>> do I instantiate some testing environment?
Using Avalon components within your spring beans is easy. Just put your
bean definition xml
in the WEB-INF/cocoon/spring directory. You can refer to the avalon
based components by using the role as the bean name, so
org.bla.bla.SAXParser is the bean name of the cocoon xml parser.

Now, for testing things are more complicated as setting up avalon based
components through spring still requires the avalon environment. You can
inherit your test case from CocoonTestCase which sets up the avalon
enviromnent for you.


HTH
Carsten

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Reply via email to