title: Spring 3: How to call @Async annotated methods from the TaskExecutor
body: <p>I'm new to asynchronous task execution in Spring, so please forgive me if this sounds like a silly question.</p>
  
  <p>I read that @Async annotation is introduced  from Spring 3.x onward at method level to invocation of that method will occur asynchronously.
  I also read that we can configure the ThreadPoolTaskExecutor in the spring config file.</p>
  
  <p>What I'm not able to understand is that how to call a @Async annotated method from a tak executor lets suppose - AsyncTaskExecutor</p>
  
  <p>Earlier we used to do something like in a class:</p>
  
  <pre><code>@Autowired protected AsyncTaskExecutor executor;
  </code></pre>
  
  <p>And then</p>
  
  <pre><code>executor.submit(&lt;Some Runnable or Callable task&gt;)
  </code></pre>
  
  <p>I'm not able to understand the relationship between @Async annotated methods and TaskExecutor.</p>
  
  <p>I tried searching a lot over the internet but could not get anything on this.</p>
  
  <p>Can somebody provide an example for the same.</p>