Listing  1

<bean id="businessService"
class="org.springframework.aop.framework.ProxyFactoryBean">
  <property
   name="proxyInterfaces"><value>example.BusinessServiceIF</value></property>
  <!-- this property determines which bean to dynamically proxy -->
  <property name="target"><ref local="businiessServiceTarget"/></property>
  <property name="interceptorNames">
    <list>
      <value>auditInterceptor</value> <!-- Custom Interceptor -->
      <value>hibernateInterceptor</value> <!-- Interceptor provided by Spring -->
    </list>
  </property>
</bean>

<bean id="auditInterceptor" class="example.AuditInterceptor">
 <property name="auditDAO">
   <ref bean="auditDAO"/>
 </property>
</bean>

<bean id="hibernateInterceptor" class=" org.springframework.orm.hibernate.HibernateInterceptor"/>


Listing 2

<!-- Hibernate Session Factory -->
<bean id="sessionFactory"
 class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
  <property name="dataSource"><ref bean="dataSource"/></property>
  <!-- Hibernate mapping files -->
  <property name="mappingResources">
    <list>
      <value>example/Audit.hbm.xml</value>
     </list>
  </property>
</bean>