title: Any good Spring threading with a TaskExecutor examples?
body: <p>I'm trying to get a handle on how to implement threading in a Java application that uses Spring for transaction management. I've found the TaskExecutor section in the <a href="http://static.springframework.org/spring/docs/2.5.x/reference/scheduling.html#scheduling-task-executor" rel="noreferrer">Spring documentation</a>, and ThreadPoolTaskExecutor looks like it would fit my needs;</p>
  <blockquote>
  <p>ThreadPoolTaskExecutor</p>
  <p>This implementation can only be used in a Java 5 environment but is also the most commonly used one in that environment. It exposes bean properties for configuring a java.util.concurrent.ThreadPoolExecutor and wraps it in a TaskExecutor. If you need something advanced such as a ScheduledThreadPoolExecutor, it is recommended that you use a ConcurrentTaskExecutor instead.</p>
  </blockquote>
  <p>However I have no idea how to go about using it. I've been searching for good examples for awhile now with no luck. If anyone can help me out I would appreciate it.</p>