|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
trouble with static pointcuts 2.0All, I have several aspects running correctly in weblogic
but, having trouble advising a certain static method, I’ve tried several diff
pointcut definitions but it never works on this particular class. It has worked
on a similar non-static method….Any help to debug this would be
appreciated Here are the details ===================================================== XML def ===================================================== <!-- Aspect to
capture username in trxns--> ===================================================== target ===================================================== package com.xxx.core.audit; public class Log } ===================================================== Aspect clas ===================================================== import org.codehaus.aspectwerkz.AspectContext;
public static void setUserName(String name) { } |
|
|
Re: trouble with static pointcuts 2.0an "after
returning" joinpoint kind on a "void method(stuff)" will likely not match
use simply after perhaps On Nov 7, 2007 10:36 PM, Michael Wyszinski <mike.wyszinski@...> wrote:
|
|
|
RE: trouble with static pointcuts 2.0Thx for the reply, in the end I got it
working by changing the deployment-model to perJVM. No Instance of com.xxx.core.audit.Log
is ever created (it’s a static singleton ) so maybe the aspect could never get bind
wih the perinstance setting? Just a guess on my part…. Here is the working xml snippet
<!-- Aspect to capture username in trxns--> From: Alexandre
Vasseur [mailto:avasseur@...] an "after returning"
joinpoint kind on a "void method(stuff)" will likely not match On Nov 7, 2007 10:36 PM, Michael Wyszinski <mike.wyszinski@...> wrote: All,
I have several aspects running correctly in weblogic but, having trouble
advising a certain static method, I've tried several diff pointcut definitions
but it never works on this particular class. It has worked on a similar
non-static method….Any help to debug this would be appreciated Here
are the details ===================================================== XML
def =====================================================
<!-- Aspect to capture username in trxns--> ===================================================== target ===================================================== package
com.xxx.core.audit; public
class Log } ===================================================== Aspect
clas ===================================================== import
org.codehaus.aspectwerkz.AspectContext;
public
static void setUserName(String name) { } |
| Free embeddable forum powered by Nabble | Forum Help |