Jun 28th, 2012, 09:44 AM
@Configurable - Tomcat 7 vs. Weblogic 10.3.4
I have a bean annotated with @Configurable as well as a custom annotation on a getter method. The custom annotation is a pointcut that's used with some 'around' advice to manipulate the returned value.
When deployed to Tomcat 7 (war), the 'around' advice executes. When deployed to Weblogic 10.3.4 (ear), the 'around' advice does not execute.
I'm not sure where to start looking for the problem - Aspectj, Spring, ?.
FYI I use compile time weaving only - no load time at all, and the above mentioned bean is a simple DTO. I create it myself using 'new', but need it to participate in the Spring lifecycle, hence the @Configurable annotation.
Jul 3rd, 2012, 03:05 AM
Have you tried some simple tests, to eliminate some variables?
1. deploy the exact same war you deployed in Tomcat to Weblogic
2. if you have no dependencies on components inside the ear, take out the war from the ear and deploy it to Tomcat
3. compare the building steps for both ear and war and see if there is any difference