Hi Karen,
Thanks for your response. I've attempted to do more research but I'm still
having a problem understanding Cocoon components.
Here is the component that gets executed by CocoonQuartzJobScheduler:
<component role="com.envisn.nv.config.ConfigurationManager"
class="com.envisn.nv.config.ConfigurationManagerImpl"
pool-min="1" pool-max="1" >
</component>
This class extends Configurable, Contextualizable & ConfigurableCronJob,
and with the contextualize() method has access to the Cocoon context:
Map objectModel = ContextHelper.getObjectModel(context);
this.cocoonContext = ObjectModelHelper.getContext(objectModel);
How does the <pipeline> config work? How do I call the pipeline from the
class? Is there another interface/class the needs to be
implemented/extended?
I do have the match pattern working in the sitemap but I'm stuck on how to
call it from the component.
Thanks for your patience. I've built some custom generators and transformers
but this is new to me.
gary
> Hello Gary!
> you can add at your component declaration in cocoon.xconf a pipeline tag
> [<pipeline/>] to execute your match
> for example:
> <component role="org.apache.cocoon.components.cron.CronJob/task_to_run"
> class="MyClass"
> logger="cron.task_to_run">
> <pipeline>sendmail</pipeline>
> </component>
> then inside "MyClass" you can to call the pipeline with request parameters
> and into sitemap.xmap to do a match pattern to: sendmail.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]