You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Frederic Gaus <ne...@necroshine.de> on 2003/10/10 10:33:01 UTC

output-modules

Hi! 

I would like to use output-modules. But I just can not find out how to
use them. It's very clear and easy to use input-modules, just like
variables. But how do I have to use the output-modules? Thanks for all
your hints. 

Freddy

PS: Maybe a short cutting of a pipeline would allready help

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: output-modules

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 10.Oct.2003 -- 10:33 AM, Frederic Gaus wrote:
> Hi! 
> 
> I would like to use output-modules. But I just can not find out how to
> use them. It's very clear and easy to use input-modules, just like
> variables. But how do I have to use the output-modules? Thanks for all
> your hints. 

Concept is very similar. If you plan to store data somewhere, an
output module gives an additional indirection. This way it is easy to
switch eg. between storing data in a session or as request
attributes. Maybe it should not be stored as attributes directly but
hash map entries in a session attribute. Well, there's a module for
that as well. Other needs could be accomodated as well. For example,
there is no reason that would prevent storing data in a database
(could use OJB or Hibernate here) or write to a file.

Difference to storing data directly is, that output modules *should*
support a weak transactional behaviour. So, when finished handing data
to the output module, either "rollback" or "commit" should be
called. Some modules support optionally to have some isolation and new
values are not visible before "commit" is called.

Please do follow up if you have more questions / problems regarding
the use of those modules.

	Chris.
-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org