Do you think we might be able to also use load-time weaving with aspectj, @AspectJ annotations and a spring agent? Should I add -javaagent:/path/to/springagent.jar to my FUSE JVM to make this happen?
Feel free to send on your testcase once you resolved the AOP error. It will be useful for others and I could replace the current testcase that is attached to ESB-793.
Marking the thread an answered is useful for other that might read through it.
To be honest, I am not an expert on AspectJ and would rather suggest you open a new thread for this question.
I apologize about the delay. I was working on other projects. I finally got around to tiding up the fuse-aop example project. I added both Spring AOP and @AspectJ examples. It works beautifully. See the attached zipped maven project. To run:
Unzip and build the maven project.
In your FUSE shell, enter the following commands
osgi/install -s http://repository.springsource.com/ivy/bundles/external/org.aspectj/com.springsource.org.aspectj.runtime/1.6.2.RELEASE/com.springsource.org.aspectj.runtime-1.6.2.RELEASE.jar* osgi/install -s http://repository.springsource.com/ivy/bundles/external/org.aspectj/com.springsource.org.aspectj.weaver/1.6.2.RELEASE/com.springsource.org.aspectj.weaver-1.6.2.RELEASE.jar* osgi/install -s wrap:mvn:org.springframework/spring-aspects/2.5.6* Restart the ESB.
Run osgi/install -s mvn:edu.utah.further.examples/fuse-aop/0.0.1-SNAPSHOT
The expected $FUSE_ESB/data/servicemix.log tail is under the etc directory.
Please let me know if that is helpful to you. Thanks so much and enjoy!