Announcement Announcement Module
Collapse
No announcement yet.
SchedulerContext, Persistent Job and Spring beans Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SchedulerContext, Persistent Job and Spring beans

    hello all,
    i want to schedule a Job that updates a database. the component that updates a databse is a spring bean... so after reading docs, i found out that if a job is persistent, and if you want to use a spring bean within the job, you should define it in the SchedulerContext..
    Can anyone tell me any example on how to do that? what shall i define in applicationContext?
    will following entry in applicationContext be valid?
    <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
    <property name="persistenceManager">
    <ref bean="persistenceManager"/>
    </property>

    </bean>

    how do i link then my job with schedulerFactory? does anyone have any examples to point me to?

    thanx in advance and regards
    marco
Working...
X