cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fe...@otego.com>
Subject Re: Restructuring directory structure[was [Vote] Block artifact directory structure]
Date Mon, 06 Nov 2006 09:52:55 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Giacomo Pati schrieb:
>
>
> Leszek Gawron wrote:
>> with cocoon modes enabled for spring you can do something like
>> this:
I always get the error:
Embedded error: Cannot invoke listener
org.springframework.web.context.ContextLoaderListener@ef2e7c
No bean named 'myDao' is defined

Putting the 'myDao' bean definition into the myContext.xml it works.
Maybe I need to enable cocoon modes for spring, but
where do I enable cocoon modes for spring?

Felix
>
>> in META-INF/cocoon/spring/myContext.xml:
>
>> <bean id="myService" class="com.mycompany.MyServiceImpl">
>> <property name="myDao" ref="myDao"/> </bean>
>
>> and then
>
>> in META-INF/cocoon/spring/dev/daos.xml: <bean id="myDao"
>> class="com.mycompany.MyMockDaoImpl"/>
>
>> in META-INF/cocoon/spring/prod/daos.xml: <bean id="myDao"
>> class="com.mycompany.MyActualDaoImpl"/>
>
> Cool, that's exactly what I was looking for, thanks!
>
> Ciao
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFTwX32lZVCB08qHERAnssAKDqoMUa8UpE7l4pdIKqDywc7WuYXgCg1o/1
lsw7y6SV5NkkO9pgjfOhTs4=
=9KV/
-----END PGP SIGNATURE-----


Mime
View raw message