[Building Sakai] Quartz Jobs that take parameters

Maurer, Christopher Wayne chmaurer at iupui.edu
Thu Apr 25 06:37:05 PDT 2013


It seems that I had the best luck when I put the bundle in shared.  The
couple of jobs I started with were both in impl jars and registered with
the spring wrapper.  When I had the bundle in with the impl it didn't seem
to find it there.

Chris

On 4/24/13 5:11 AM, "Matthew Buckett" <matthew.buckett at it.ox.ac.uk> wrote:

>We did some jobs with parameters an stuck the bundle properties in shared.
>
>So we deployed the bundle with our API (not really part of the API,
>but easier than creating yet another maven project) and nested it
>inside our package so it didn't clash.
>
>uk/ac/ox/oucs/vle/Scheduler.properties
>
>Then when we created the bean for the job:
>
><bean id="uk.ac.ox.oucs.vle.LocalJobWrapper"
>  
>class="org.sakaiproject.component.app.scheduler.jobs.SpringConfigurableJob
>BeanWrapper"
>  singleton="true" init-method="init">
>
>  [..trimmed..]
>
>  <property name="resourceBundleBase" value="uk.ac.ox.oucs.vle.Scheduler"
>/>
></bean>
>
>It all seems to work fine.
>
>On Tue, Apr 23, 2013 at 9:07 PM, Maurer, Christopher Wayne
><chmaurer at iupui.edu> wrote:
>> So, I've been tinkering with the new quartz jobs that can take
>>parameters,
>> and I might be having an issue with the message bundle part.
>> The job that I happened to pick to play with is defined in a different
>> module (not the job scheduler).  Is it able to read in the bundle from
>>some
>> other place, or does it have to be in the scheduler itself?  My gut is
>> telling me that it has to be available to the scheduler tool so this
>>won't
>> work for jobs defined in some other module.
>>
>> Chris
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>>sakai-dev-unsubscribe at collab.sakaiproject.org
>> with a subject of "unsubscribe"
>
>
>
>-- 
>  Matthew Buckett, VLE Developer, IT Services, University of Oxford



More information about the sakai-dev mailing list