Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6889707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:11:25+00:00 2026-05-27T06:11:25+00:00

Im writting a Spring Application, which has to run a task in a new

  • 0

Im writting a Spring Application, which has to run a task in a new thread that should be started every couple of seconds. My XML looks like this:

<bean id="checkEmail" class="com.turbineam.dataloader.commons.QuartzSchedulerBean"></bean>

<bean id="scheduledTask" class="org.springframework.scheduling.timer.ScheduledTimerTask">
    <property name="delay" value="1000" />
    <property name="period" value="1000" />
    <property name="timerTask" ref="checkEmail" />
</bean>

And for Java code I have:

package com.turbineam.dataloader.commons;
import java.util.TimerTask;

public class QuartzSchedulerBean extends TimerTask {

    @Override
    public void run() {
        System.out.println("printMe!");
    }
}

But it doesn’t affect my whole program (which makes something else)

how can I make this right?

Kind Regards,

Rafał

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:11:26+00:00Added an answer on May 27, 2026 at 6:11 am

    You’re missing a TaskExecutor implementation.

    See: http://static.springsource.org/spring/docs/2.5.x/reference/scheduling.html#scheduling-task-executor

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a web application using Spring/Hibernate that displays a report to a user,
I'm writing an client application that has to query a URL and confirm the
I'm working on my first real WinForms application, and my boss has asked that
I'm developing in C a Unix application consisting of a server that has to
I am writing a C# application that uses a long hard-coded string. For maintainability
We are currently writing an application which is split into multiple projects/modules. For example,
I am writing a test application which is controlling another computer. The test computer
I'm writing application, which connects to CRM using CRM SDK 4. In the first
Imagine that I have a C# application that edits text files. The technique employed
I am writing unit tests for service layer in my spring application. Here is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.