<map:resource name="write">
     <map:transform src="blog/{blogfile}" type="orcades-file-writer">
      <map:parameter name="dest-dir" value="{orcades:data-path}/"/>
 </map:transform>

The transaction
* begins on setUp
* commit on endDocument
* roll back on recycle (if needed!)


Geert Josten wrote:
How does it work?

Kind regards,
Geert
-----Oorspronkelijk bericht-----
Van: Olivier [mailto:[EMAIL PROTECTED] Verzonden: woensdag 20 september 2006 10:07
Aan: [email protected]
Onderwerp: Re: Free for use: SaveFilesTransformer

Hi all,
 I've build a transactionnal write transformer on top of :
http://jakarta.apache.org/commons/transaction/
Works fine in production.

Geert Josten wrote:
Hi all,

Available on wiki:

http://wiki.apache.org/cocoon/SaveFilesTransformer

It might be that someone else already wrote a Transformer
like this one.
It is derived from the SourceWritingTransformer (yet
simplified) and
has one important benefit over it: it can take a src attribute that can be used to capture also binary streams and save them to disk.

Comments are welcome..

Kind regards,
Geert
Drs. G.P.H. Josten
Consultant
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl
KvK 27164984


De informatie - verzonden in of met dit emailbericht - is
afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
---------------------------------------------------------------------
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]



---------------------------------------------------------------------
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]

Reply via email to