With that app.config you should get an exception saying that quartz_jobs.xml does not exist (because you''ve specified XMLSchedulingDataProcessorPlugin). So remove quartz.plugin.xml.*
Also, the facility resolves jobs by concrete type, so remove .WithService. DefaultInterfaces() Cheers -- Mauricio On Mon, May 27, 2013 at 3:13 AM, Anders Nilsson <[email protected]> wrote: > > Den måndagen den 27:e maj 2013 kl. 00:22:23 UTC+2 skrev Mauricio Scheffer: >> >> Hi Anders, >> >> What does you app.config look like? Do you also have a quartz_jobs.xml? >> Did you register/add the startable facility? >> >> Cheers >> >> Dear Mauricio, >> > > The app.config looks as this: > > <?xml version="1.0"?> > <configuration> > <configSections> > <section name="castle" > type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, > Castle.Windsor"/> > </configSections> > <castle> > <facilities> > <facility id="startable.facility" > type="Castle.Facilities.Startable.StartableFacility, Castle.Windsor"/> > <facility id="quartznet" > type="Castle.Facilities.QuartzIntegration.QuartzFacility, > Castle.Facilities.QuartzIntegration"> > <quartz> > <item > key="quartz.scheduler.instanceName">XmlConfiguredInstance</item> > <item > key="quartz.threadPool.type">Quartz.Simpl.SimpleThreadPool, Quartz</item> > <item key="quartz.threadPool.threadCount">5</item> > <item key="quartz.threadPool.threadPriority">Normal</item> > <item > key="quartz.plugin.xml.type">Quartz.Plugin.Xml.XMLSchedulingDataProcessorPlugin, > Quartz</item> > <item key="quartz.plugin.xml.scanInterval">10</item> > </quartz> > </facility> > </facilities> > </castle> > <startup><supportedRuntime version="v4.0" > sku=".NETFramework,Version=v4.0"/></startup></configuration> > > I dont have a jobs.xml the intention was to dynamically add the job. I > also removed the listeners and triggers related to the sample app to only > have this particular job ... but mabye I unintentionally removed to much ? > > Refering to the startable facility do i have to initialize that through > code in my main? > > Best regards Anders > >> >> -- >> Mauricio >> >> >> On Sun, May 26, 2013 at 3:08 PM, Anders Nilsson <[email protected]> wrote: >> >>> Dear All, >>> >>> Im looking for some pointers related to using Windsor.net and >>> Quarts.net. I have used the integration built by Mauricio, and have started >>> out by modifying the sample application. >>> >>> http://bugsquash.blogspot.se/**2009/03/windsor-facility-for-** >>> quartznet.html<http://bugsquash.blogspot.se/2009/03/windsor-facility-for-quartznet.html> >>> >>> My intention is to dynamically load a job from an separate assembly at >>> runtime and execute the loaded job, i get no exceptions but also nothing >>> happens during execute so somethings wrong/missing. >>> >>> In short this is the code: >>> >>> //Create container with default config from sample >>> var container = new WindsorContainer(new XmlInterpreter()); >>> >>> //Register my testJob >>> container.Register(AllTypes.**FromAssemblyNamed("TestJob") >>> ** .Where(type => type.IsPublic) >>> ** .WithService >>> ** .DefaultInterfaces()); >>> >>> //Retreive scheduler >>> var scheduler = container.Resolve<IScheduler>(**); >>> >>> >>> //Build job >>> IJobDetail aJobdetail = JobBuilder.Create<TestJob.** >>> TestJob1>() >>> ** >>> .WithIdentity("TestJob1", "group1") >>> ** .Build(); >>> >>> //Add job to scheduler >>> scheduler.AddJob(aJobdetail, true); >>> try >>> { >>> >>> //Start the TestJob >>> scheduler.TriggerJob(**aJobdetail.Key); >>> } >>> catch (Exception ex) >>> { >>> Console.WriteLine(string.**Format("Something bad >>> happened ... : {0}", ex.InnerException)); >>> } >>> >>> >>> So basically everything runs ... but TriggerJob does nothing and here i >>> have clearly missed somthing / invoking things in a wrong way so if anyone >>> see what I have overlooked any pointers would be appreciated. >>> >>> Best regards Anders >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Castle Project Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to castle-project-users+**[email protected]. >>> To post to this group, send email to castle-pro...@**googlegroups.com. >>> >>> Visit this group at http://groups.google.com/** >>> group/castle-project-users?hl=**en<http://groups.google.com/group/castle-project-users?hl=en> >>> . >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected] > . > Visit this group at > http://groups.google.com/group/castle-project-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/castle-project-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
