Re: T5: Quartz and the IoC Registry?

2008-10-12 Thread Andy Huhn
Hi Angelo, It looks like I forgot one piece of info...each descendent of HENJob should be registered as a service in AppModule, just like your other services: // Jobs that are scheduled by Quartz binder.bind( SendMailJob.class, SendMailJobImpl.class ); It is actually the Tapestry IoC framewo

Re: T5: Quartz and the IoC Registry?

2008-10-11 Thread Angelo Chen
Hi Andy, Thanks for the code, the HenJob does not have a default constructor, will it have this error: [ERROR] ErrorLogger An error occured instantiating job to be executed. job= 'group1.job1' org.quartz.SchedulerException: Problem instantiating class 'org.sample.myjob' ? And here's the paren

Re: T5: Quartz and the IoC Registry?

2008-10-11 Thread Andy Huhn
Hi Angelo, It's been several months since I wrote this, so the details are fuzzy...but here are some snippets of some code that I'm currently running in production: /* The following service is registered with Tapestry IOC. It schedules jobs via Quartz */ public class SchedulerServiceImpl impleme

Re: T5: Quartz and the IoC Registry?

2008-10-11 Thread Angelo Chen
Hi Andy, Any sample code for this? Thanks. Angelo Andy Huhn wrote: > > Thanks, Howard...ServiceResources did the trick! > > On Sat, 2007-12-15 at 06:53 -0800, Howard Lewis Ship wrote: >> The Registry is not exposed, a service may be passed its >> ServiceResources via a constructor parameter.

Re: T5: Quartz and the IoC Registry?

2008-05-02 Thread Michael Lake
Any example of this somewhere? On Dec 18, 2007, at 8:41 PM, Andy Huhn wrote: Thanks, Howard...ServiceResources did the trick! On Sat, 2007-12-15 at 06:53 -0800, Howard Lewis Ship wrote: The Registry is not exposed, a service may be passed its ServiceResources via a constructor parameter. Thi

Re: T5: Quartz and the IoC Registry?

2007-12-18 Thread Andy Huhn
Thanks, Howard...ServiceResources did the trick! On Sat, 2007-12-15 at 06:53 -0800, Howard Lewis Ship wrote: > The Registry is not exposed, a service may be passed its > ServiceResources via a constructor parameter. This is an extension of > ServiceLocator, which includes all the key methods of Re

Re: T5: Quartz and the IoC Registry?

2007-12-15 Thread Howard Lewis Ship
The Registry is not exposed, a service may be passed its ServiceResources via a constructor parameter. This is an extension of ServiceLocator, which includes all the key methods of Registry, allowing services to be obtained by type or by service id. In addition, starting in 5.0.7., service proxies

T5: Quartz and the IoC Registry?

2007-12-14 Thread Andy Huhn
All, I'd like to use Quartz with tapestry. As such, I'd like to get a reference to the Registry and pass it into a Tapestry service (so that I can use it in my Quartz jobs to instantiate all of my DAOs and Hibernate Sessions). I saw some discussion here on the list a few days ago about the Regis