On 8/28/06, Bertrand Delacretaz <[EMAIL PROTECTED]> wrote:
On 8/28/06, Omar Adobati <[EMAIL PROTECTED]> wrote:

> ...If I need to execute more than one task at the same
> time, suppose to generate a html file to display to the screen and an
> e-mail to send to someone... could I do this in the "same" time?...

You could either

a) Aggregate the mail-generating pipeline with the ones that generate
your html page, which would cause both to execute at the same time
(conceptually at least,not sure about multi-threading in this case).

Using aggregates was my idea too. But I have some doubts: suppose I
want to aggregate  more than one action or more then one transformer.
I could have back more than one "response" (success or error) form
each one. Could I aggregate them in one "result page" using aggregate
(maybe in collaboration with cocoon protocol)? If each "job" take
different time to be executed will I have the "result page" at the end
of the last (longer??) job? (if yes, maybe with some ajax code will be
possible to have my "result page" dynamically build with results from
each job).

or

b) Have a flowscript as part of your html page generation, and call
java code there to send the email.

-Bertrand

Same questions for the flowscript too...

Omar.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to