Hi guys,
I'm having an issue with the 'at'Around and 'at'annotation annotations with spring.
In my project, we created an aspect to log the request and response parameters of our webservices. We then created an annotation to mark which webservices we would like this to happen. However, this is not working in any fashion. The 'at' signs are explicitly written because of forum limitations...
Here are some code:
the marking annotation:
the aspect class with the pointcut:Code:'at'Retention(RetentionPolicy.RUNTIME) 'at'Target(ElementType.METHOD) public 'at'interface ServiceLogging { String service(); }
a snippet from the webservice:Code:'at'Aspect public class Logger { 'at'Around("'at'annotation(serviceLogging)") public Object logService(ProceedingJoinPoint joinPoint, ServiceLogging serviceLogging) throws Throwable { //logging code here } }
and in my context.xml configuration, I have the following to enable aspects:Code:'at'ServiceLogging(service="Audit Service") public AuditReportResponseDocument auditReport(AuditReportRequestDocument doc) throws XmlException { // web service code }
My environment is BEA Weblogic 10.2, using BEA Workshop and Spring 2.0.7. What is really disturbing is that this was working exceptionally fine, and then one day, boom! it stopped without any aparent reason. Now I cannot make this work again.Code:<bean class="org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator" />
Does anyone have any ideas on this?
Thanks!
Francisco


Reply With Quote