title: Spring Annotations not working
body: <p>I posted this to the spring forums, sorry for the xpost.</p>
  
  <p>I am new to spring. I am working on an existing project that uses spring 1.2.8 (old, I know), and java 1.5 so annotations should work.</p>
  
  <p>I am trying to use the @Transactional annotation on a concrete class, following the docs at: <a href="http://static.springsource.org/spring/docs/1.2.8/reference/transaction.html#d0e6062" rel="nofollow noreferrer">http://static.springsource.org/spring/docs/1.2.8/reference/transaction.html#d0e6062</a></p>
  
  <p>So I have something like so:</p>
  
  <pre><code>&lt;bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&gt;
   &lt;property name="dataSource" ref="DataSource"/&gt;
  &lt;/bean&gt;
  
  &lt;bean id="MyDAO"
    class="com.company.package.dao.spring.MyDAOImpl"&gt;
    &lt;property name="dataSource" ref="DataSource" /&gt;
  &lt;/bean&gt;
  
  &lt;bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/&gt;
  
  &lt;bean class="org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor"&gt;
    &lt;property name="transactionInterceptor" ref="txInterceptor"/&gt;
  &lt;/bean&gt;
  
  &lt;bean id="txInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor"&gt;
    &lt;property name="transactionManager" ref="transactionManager"/&gt;
    &lt;property name="transactionAttributeSource"&gt;
      &lt;bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/&gt;
    &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>and I annotate my class:</p>
  
  <pre><code>@Transactional(propagation = Propagation.REQUIRED)
  public class MyDAOImpl extends JdbcDaoSupport implements MyDAO{
  ...
  }
  </code></pre>
  
  <p>When I run it I can see in my debug logs that spring is finding all of the classes:
  Code:</p>
  
  <pre><code>01-07-10 12:10:45 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator]
  01-07-10 12:10:45 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor]
  01-07-10 12:10:45 DEBUG [DefaultXmlBeanDefinitionParser] Neither XML 'id' nor 'name' specified - using generated bean name [org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#329f3d]
  </code></pre>
  
  <p>but after that there is no mention of annotations or transactions. I don't even know if there are supposed to be. I am verifying in my mysql log that the queries are not being performed transactionally.</p>
  
  <p>Any ideas? </p>