Instancing a new thread in Spring to execute tasks periodically

I have a dashboard made with Spring that must control some task executions. The basic idea is to have a thread to send this tasks periodically to remote trackers. How can I instance this thread? I've been reading a little and some people say that is not a good idea to use thread. Would this cause a problem with Spring life cycle? Is there another way to have a method called periodically?


Spring has support for Task Scheduling. Find more information here:

E.g. you can configure scheduled task in your application context like so:

<task:scheduled-tasks scheduler="myScheduler">
  <task:scheduled ref="beanA" method="methodA" fixed-delay="5000"/>

<task:scheduler id="myScheduler" pool-size="10"/>

Need Your Help

Missing label on Drupal 5 CCK single on/off checkbox

drupal cck

I'm creating a form using the Content Construction Kit (CCK) in Drupal5.

Error in arrayadapter on changing fonts

android android-arrayadapter

I'm trying to modify a code from MyKong adding some lines which change the font of the textview, but when I try to run I ecounter a force close.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.