Re: Custom generator not call recycle method
Miguel <[email protected]> Wed, 05 Feb 2014 11:22:14 +0100
| Newsgroups | gmane.text.xml.cocoon.user |
|---|---|
| Message-ID | <[email protected]> |
Hi
I have to come back to old configuration of generator:
<map:generator label="icmsRest" name="icmsRest"
logger="es.juntadeandalucia.generation.CustomGenerator"
src="es.juntadeandalucia.generation.CustomGenerator">
<serverICMS>ip_machine</serverICMS>
<portICMS>port_machine</portICMS>
<namePool>org.apache.cocoon.generation.HttpPoolManager</namePool>
</map:generator>
Then, HttpPoolManager is a resource defined like spring bean and for to
use it in my custom generator, I have to implement
ApplicationContextAware interface. So, in this way, my generator work
fine and recycle method is called at finish of my generator.
El 04/02/2014 16:52, Miguel escribió:
> Hi,
>
> I'm migrating configuration custom generator from Avalon to Spring and
> generator is working well but I have checked that generator does not
> call recycled method when it has finished.
>
> My generator configuration in servlet-service.xml file is:
>
> <bean scope="prototype"
> name="org.apache.cocoon.generation.Generator/customGenerator"
> class="es.juntadeandalucia.generation.CustomGenerator">
> <property name="server" value="${ip.machine}" />
> <property name="port" value="${port_machine}" />
> <property name="parser" ref="org.apache.cocoon.core.xml.SAXParser"/>
> <property name="manager"
> ref="org.apache.avalon.framework.service.DefaultServiceManager" />
> </bean>
>
> When I used old configuration:
>
> <map:generator label="customGenerator" name="customGenerator"
> src="es.juntadeandalucia.generation.CustomGenerator">
> <server>${ip.machine}</server>
> <port>${port_machine}</port>
> </map:generator>
>
> then, my generator work all well and execute recycle method when
> generator is finished.
>
> Any ideas?
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
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