Re: [cocoon 2.2] Spring configuration of transformers

2007-09-27 Thread Joerg Heinicke
On 24.09.2007 6:07 Uhr, thuertas wrote: I tried to store beans in a database using Generator, Tansformer and Serializer. That's ok for Generator and Serializer but there's nothing in database when I use a Transformer! So why doesn't it work with a transformer? Is the spring transaction initi

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-24 Thread thuertas
Hi, I tried to store beans in a database using Generator, Tansformer and Serializer. That's ok for Generator and Serializer but there's nothing in database when I use a Transformer! That's what I did: The above line should be o.a.c.generati

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-14 Thread Raphaël Piéroni
Hi, Many thanks, that did the trick. Raphaël Jason Johnston a écrit : On Thu, 13 Sep 2007 17:56:27 +0200, Raphaël Piéroni <[EMAIL PROTECTED]> wrote: Thanks, I tried, but it doesn't work. Here what i did exactly: ... export defines it's spring stuff in src/main/resources/META-IN

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-13 Thread Jason Johnston
On Thu, 13 Sep 2007 17:56:27 +0200, Raphaël Piéroni <[EMAIL PROTECTED]> wrote: > Thanks, > I tried, but it doesn't work. > Here what i did exactly: ... > export defines it's spring stuff in > src/main/resources/META-INF/cocoon/spring/ > It defines the block and the generator i try to test > like

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-13 Thread Raphaël Piéroni
Thanks, I tried, but it doesn't work. Here what i did exactly: I got 4 maven projects: common, storage, export, and webapp obviously storage depends on common, export on storage and webapp depends on export. webapp does not contain any java code nor any sitemap. common defines it's spring conf

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-13 Thread Sébastien Geindre
So general advice for all people: if you develop new components don't declare them in a sitemap. So, in order to use saxon transformer (XSLT 2.0), we have to declare it as spring component ? How ? (newbie in spring...) Thanks Grek !! -- Sébastien Geindre DPREVI/AERO/DEV sebastien.geindre

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-12 Thread Grzegorz Kossakowski
Raphaël Piéroni pisze: > Do you mean something like this: > in my jar defining my block sitemap, i do > META-INF/c/s/myGenerators-services.xml > in which i do > > and in my sitemap i do > > > > > > > and also in the sitemap,

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-12 Thread Raphaël Piéroni
Grzegorz Kossakowski a écrit : Raphaël Piéroni pisze: And this transformer have to access the database (DAO w/ transaction) that is defined with spring. But i can't manage to link the 2 information. Is this transformer a Spring bean? Do you want to inject Spring bean (

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-12 Thread Grzegorz Kossakowski
Raphaël Piéroni pisze: >> >>> And this transformer have to access the database (DAO w/ transaction) >>> that is defined with spring. >>> But i can't manage to link the 2 information. >>> >> >> Is this transformer a Spring bean? Do you want to inject Spring bean >> (a DAO) into some property

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-12 Thread Raphaël Piéroni
Grzegorz Kossakowski a écrit : Raphaël Piéroni pisze: Hi Guys, I have a transformer defined in the sitemap.xmap. Is it your own transformer? Yep, IIRC, we also have some custom generators. And this transformer have to access the database (DAO w/ transaction) that is defined w

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-11 Thread Grzegorz Kossakowski
Raphaël Piéroni pisze: > Hi Guys, > > > I have a transformer defined in the sitemap.xmap. Is it your own transformer? > And this transformer have to access the database (DAO w/ transaction) > that is defined with spring. > But i can't manage to link the 2 information. Is this transformer a Spr

[cocoon 2.2] Spring configuration of transformers

2007-09-11 Thread Raphaël Piéroni
Hi Guys, I have a transformer defined in the sitemap.xmap. And this transformer have to access the database (DAO w/ transaction) that is defined with spring. But i can't manage to link the 2 information. Is there any documentation or example? Regards, Raphaël Piéroni -