Why problem with Ejb.remove()?

View: New views
4 Messages — Rating Filter:   Alert me  

Why problem with Ejb.remove()?

by rmahmood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,

I used the following pointcut to advice ejb remove method

public pointcut ejbRemove() : call(public void javax.ejb.EJBObject+.remove(..));

in my around advice

void around() : ejbRemove() {
                Object targetObject = thisJoinPoint.getTarget();
                MethodSignature methodSignature = (MethodSignature)thisJoinPoint.getSignature();
                Method method =  methodSignature.getMethod();
        ...............
}

why Method method =  methodSignature.getMethod(); always returns null?

methodSignature.getMethod() works fine for all other ejb Calls.

Can anybody tell me why it happens?

Thanx

Re: Why problem with Ejb.remove()?

by Andy Clement :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

looks like this bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=154427

Andy.

2008/11/10 rmahmood <rashid_m180@...>

Hi All,

I used the following pointcut to advice ejb remove method

public pointcut ejbRemove() : call(public void
javax.ejb.EJBObject+.remove(..));

in my around advice

void around() : ejbRemove() {
               Object targetObject = thisJoinPoint.getTarget();
               MethodSignature methodSignature =
(MethodSignature)thisJoinPoint.getSignature();
               Method method =  methodSignature.getMethod();
       ...............
}

why Method method =  methodSignature.getMethod(); always returns null?

methodSignature.getMethod() works fine for all other ejb Calls.

Can anybody tell me why it happens?

Thanx
--
View this message in context: http://www.nabble.com/Why-problem-with-Ejb.remove%28%29--tp20422432p20422432.html
Sent from the AspectJ - users mailing list archive at Nabble.com.

_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users


_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: Why problem with Ejb.remove()?

by rmahmood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is any way to workaround. I tried the workaround given in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154427
but it doesnt work for me.

Andy Clement wrote:
looks like this bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=154427

Andy.

2008/11/10 rmahmood <rashid_m180@yahoo.com>

>
> Hi All,
>
> I used the following pointcut to advice ejb remove method
>
> public pointcut ejbRemove() : call(public void
> javax.ejb.EJBObject+.remove(..));
>
> in my around advice
>
> void around() : ejbRemove() {
>                Object targetObject = thisJoinPoint.getTarget();
>                MethodSignature methodSignature =
> (MethodSignature)thisJoinPoint.getSignature();
>                Method method =  methodSignature.getMethod();
>        ...............
> }
>
> why Method method =  methodSignature.getMethod(); always returns null?
>
> methodSignature.getMethod() works fine for all other ejb Calls.
>
> Can anybody tell me why it happens?
>
> Thanx
> --
> View this message in context:
> http://www.nabble.com/Why-problem-with-Ejb.remove%28%29--tp20422432p20422432.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>

_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: Why problem with Ejb.remove()?

by Andy Clement :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The bug is marked '[plan]' so I do plan to look at fixing it shortly - before 1.6.3 ships (in December).  I don't know of another workaround (or even if your situation matches that mentioned in the bug report - might be worth you adding a comment and getting on cc of that bug for when I update it).

Andy.

2008/11/11 rmahmood <rashid_m180@...>

There is any way to workaround. I tried the workaround given in
but it doesnt work for me.


Andy Clement wrote:
>
> looks like this bug:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=154427
>
> Andy.
>
> 2008/11/10 rmahmood <rashid_m180@...>
>
>>
>> Hi All,
>>
>> I used the following pointcut to advice ejb remove method
>>
>> public pointcut ejbRemove() : call(public void
>> javax.ejb.EJBObject+.remove(..));
>>
>> in my around advice
>>
>> void around() : ejbRemove() {
>>                Object targetObject = thisJoinPoint.getTarget();
>>                MethodSignature methodSignature =
>> (MethodSignature)thisJoinPoint.getSignature();
>>                Method method =  methodSignature.getMethod();
>>        ...............
>> }
>>
>> why Method method =  methodSignature.getMethod(); always returns null?
>>
>> methodSignature.getMethod() works fine for all other ejb Calls.
>>
>> Can anybody tell me why it happens?
>>
>> Thanx
>> --
>> View this message in context:
>> http://www.nabble.com/Why-problem-with-Ejb.remove%28%29--tp20422432p20422432.html
>> Sent from the AspectJ - users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@...
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@...
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>

--
View this message in context: http://www.nabble.com/Why-problem-with-Ejb.remove%28%29--tp20422432p20435428.html
Sent from the AspectJ - users mailing list archive at Nabble.com.

_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users


_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users