-
Mar 28th, 2012, 02:27 AM
#1
CronJob is Not Getting Triggered in Weblogic using Springs context.xml
Hi,
we are using Springs 2.5, Weblogic 10.3 in our project. i have written a cron job which will run for every one minute and configured in context.xml file. i have written normal java class with main method and executed job, it is working fine but when i deploy war file in weblogic and restarted the server cron job is not executing. Do we need to do any extra setting to run cronjob in weblogic using springs?
Here i am sending peace of cronjob code of my context.xml:
<!--Scheduler Factory-->
<bean id="scheduler" class="org.springframework.scheduling.quartz.Sched ulerFactoryBean">
<property name="triggers">
<list>
<ref bean="job1"/>
</list>
</property>
</bean>
<!--Triggers-->
<bean id="job1" class="org.springframework.scheduling.quartz.CronT riggerBean">
<property name="jobDetail" ref="group1"></property>
<property name="cronExpression" value="0 0/1 * * * ?"></property>
</bean>
<!-- Job -->
<bean id="group1" class="org.springframework.scheduling.quartz.JobDe tailBean">
<property name="jobClass" value="com.plm.oam.cronjob.CronJob"></property>
<property name="jobDataAsMap">
<map>
<entry key="timeout" value="5"/>
</map>
</property>
</bean>
Can anyone please help me on this issue?
Thanks in Advance,
Ganesh:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules