This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Scheduler Using Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Scheduler Using Spring" Watch "Scheduler Using Spring" New topic
Author

Scheduler Using Spring

Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Hey its not working. No errors though, but showing up nothing. The code goes like this...

applicationContext.xml : Snippet


dispatcher.xml : Snippet



SmsAutoResponder.java


Main.java



I am getting the message from SmsAutoResponder constructor. But after that for 90 seconds nothing appears and program exits.

Can you spot possible errors or what I am missing?

Thanks.
[ October 24, 2008: Message edited by: Adeel Ansari ]
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Does your Spring applicationContext.xml also contain a bean definition for org.springframework.scheduling.quartz.SchedulerFactoryBean specifying the smsAutoResponderTrigger you're using? This is the main Quartz bean that handles firing triggers, calling jobs, etc. If this isn't defined, the trigger isn't going to be fired.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Oops. I missed that. I found it here as well,
Spring Framework Reference : Scheduling. Previously, i failed to notice this particular snippet, I wonder.

Thanks, Nathan.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
At first I was following the example given in JavaRanch Journal. It was just fine. The only thing I realized now is, Christophe, repeated the SimpleTriggerBean in that particular example, but not the SchedulerFactoryBean. And I completely agree, that its reasonable to not repeat that since that would be exactly same even if repeated. But I beleive, it would have been better to mention it, at least.

Bottom line, I didn't read that thoroughly and missed that important snippet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scheduler Using Spring
 
Similar Threads
Error: Active Spring transaction synchronization required
Error: Error registering bean with name 'transactionManager'
commit data in hibernate template through spring
HSQLDB Indexing Error?
PersistentObjectException: detached entity passed to persist: