How-to configure spring singleton resource in block of C2.2

Miguel <[email protected]> Tue, 11 Feb 2014 12:51:01 +0100
Newsgroups gmane.text.xml.cocoon.user
Message-ID <[email protected]>
Hi

  My custom block of my application Cocoon 2.2 use a resource configured 
in spring. this resource is defined like singleton scope in spring 
section of block. Besides I have a custom generator that it use this 
spring resource.

Happens when I start my web application spring context load my resource, 
but when I call first time to custom generator the spring resource 
execute methods of shutdown and init, again.

if I move configuration of resource to applicationContext.xml of my web 
application (in the same place of Configure Log4j), then resource only 
init once time, but I can not debug or start alone my block.

Any ideas?

Best regards


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
miguel_valencia.vcf (text/x-vcard, 379 B)
begin:vcard
fn:Miguel Valencia Zurera
n:Valencia Zurera;Miguel
org;quoted-printable:Sociedad Andaluza para el Desarrollo de las Telecomunicaciones, S.A.;Departamento de Sistemas de Informaci=C3=B3n
adr;dom:;;Avda de la Arboleda s/n;Sevilla;Tomares ;41940 
email;internet:[email protected]
tel;cell:742377 (670942377)
x-mozilla-html:TRUE
version:2.1
end:vcard