title: How to configure RetryAdvice and ExceptionTranslation for Deadlocks using NHibernate and Spring
body: <p>i am using Spring.net 1.2 with NHibernate 2.0.1.<br>
  Within my project i'am facing some Deadlock issues and besides the database tweaks to minimize the occurence i would like to implement Springs RetryAdvice to handle this.<br>
   I can't find any working example how to configure a this. The reference seems to be clear about how to use it but somehow i can't get it working. </p>
  
  <pre><code>&lt;!--Used to translate NHibernate exception to Spring.DataAccessExceptions--&gt;    
  &lt;object type="Spring.Dao.Attributes.PersistenceExceptionTranslationPostProcessor, Spring.Data"/&gt;
  
  &lt;!--ExceptionHandler performing Retry on Deadlocks--&gt;
  &lt;object name="ExceptionHandlingAdvice" type="Spring.Aspects.RetryAdvice, Spring.Aop"&gt;
    &lt;property name="retryExpression" value="on exception name DeadLockLoserException retry 3x rate (1*#n + 0.5)"/&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>I have added the [Repository] attribute to my DAOs to get ExceptionTranslation enabled  and tried to add the RetryAdvice to the TransactionProxyFactoryObject i am using but it won't work. I don't understand where to put this Advice. Do i have to declare a PointCut to add it or how could i get it to work as expected.  </p>
  
  <p>Thx in advance - any help appreciated.</p>