Hi,
I have a mailet in which I want to schedule a job.
I am using James 2.2.0.
I have found the fulcrum-quartz package which shows how to configure the
quartz scheduler in an avalon container.
I have added in a new block into the assembly.xml for the quartz
scheduler and added it into the James block as a provider.
Now in a mailet I can schedule a job.
However I want the job to send an email.
I have tried adding in a the James block as a provide of the quartz
block I defined (and added in the dependency in the .xinfo) file.
Now I have a circular dependency which the server duly tells me.
In the case where I have 2 blocks that "use" the services of each other,
how can one set up the assembly.xml and .xinfo files to facilitate this
and avoid the circular dependency.
I cant see how to do it other than using the service method in the
container (James) to potentially set itself into the component
(QuartzScheduler).
Is there a better way?
Rgds,
Phil
-------------------------
Philip Tomlinson
PJT Consulting
Email: [EMAIL PROTECTED]
Mobile: 021 707 385
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]