tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Louis MONTEIRO <jean-louis.monte...@atosorigin.com>
Subject Re: method interceptor is never called
Date Wed, 30 Dec 2009 10:37:40 GMT

Hi Christian,

Don't know why it doesn't work for you.
I gave it a try with our interceptor example and it works as expected.

If you have a small project we can use to reproduce, can you share it?

Jean-Louis


Christian Bourque wrote:
> 
> Hi,
> 
> I'm having a problem with a session bean and the latest version of OpenEJB
> (3.1.2): my method interceptor is never called by the container, if I
> change
> it to a class level interceptor it works as expected!
> 
> This doesn't work:
> 
> @Local(Test.class)
> @Stateless
> public class TestBean extends ... implements Test
> {
>      @Override
>      @Interceptors(TagInterceptor.class)
>      public Entity makePersistent(Entity entity) { ... }
> }
> 
> This works:
> 
> @Local(Test.class)
> @Stateless
> @Interceptors(TagInterceptor.class)
> public class TestBean extends ... implements Test
> {
>      @Override
>      public Entity makePersistent(Entity entity) { ... }
> }
> 
> Anyone aware of this problem?
> 
> Thanks
> 
> Christian
> 
> 

-- 
View this message in context: http://n4.nabble.com/method-interceptor-is-never-called-tp990702p990847.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message