This content has been marked as final.
Show 3 replies
-
1. Re: Prepare statement not picked up, am I missing something?
flavia.rainone Oct 30, 2008 9:47 AM (in response to rubenv)rubenv wrote:
I can see the advice code being run, as expected (once for the first sayHello call, twice for the second one, because the interceptor has been added). This leads me to believe that the prepare isn't being noticed.
This is unexpected. It looks like you have found a bug.
Just to rule out any other possibilities, do you see the same behavior when you do AOP + AS in the standard way? I.e., when you add jboss-aop.xml (with the prepare statement) to the deploy directory before deploying your application, instead of setting a value for jboss.aop.path? -
2. Re: Prepare statement not picked up, am I missing something?
rubenv Nov 3, 2008 10:14 AM (in response to rubenv)Am not using AS at all (simply standalone JBoss AOP). I did however find out that dropping the -hotSwap parameter fixed the issue. Am not sure if that's how it should be, but it did the trick.
-
3. Re: Prepare statement not picked up, am I missing something?
flavia.rainone Nov 3, 2008 11:08 AM (in response to rubenv)The JVM may take a while to perform the hot swap operation. Could you please add a Thread.sleep before the sayHello() call?
If it still not works, then it is a bug.