Is it possible to use Aspects for logging performance?If i try to add:
<bean id="aspectLogger" class="com.kaunas.PerformanceAspect"/>
<aop:config>
<aop:pointcut id="pointcutLog" expression="@annotation(com.kaunas.AspectAdvice)"/>
<aop:aspect id="aopAspect" ref="aspectLogger" order="1">
<aop:around pointcut-ref="pointcutLog" method="logPerformance"/>
</aop:aspect>
</aop:config>
to module-context.xml file I am not able to start alfresco anymore. I get problems with "BeanCreation"
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationEventMulticaster' defined in class path resource [alfresco/core-services-context.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'crossRepositoryCopyServiceWriteTxnAdvisor' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'retryingWriteTxnAdvice' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'retryingWriteTxnAdvice' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'retryingTransactionHelper' while setting bean property 'txnHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'retryingTransactionHelper' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'transactionService' while setting bean property 'transactionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionService' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [alfresco/hibernate-context.xml]: Initialization of bean failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 09300000 A transaction has not be started for method 'isSingleton' on org.springframework.beans.factory.FactoryBean
So my initial question would be is it possible to use spring aop with alfresco? And if it is possible example or a guide how to do it would be very helpful. respectfully,Modestas