• Post Reply Bookmark Topic Watch Topic
  • New Topic

Named CDI Bean with Interceptor - Memory Leak  RSS feed

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my project (JEE 6, JBoss 7.1, JDK 1.7), I have several @Named CDI, all inheriting from a common @ConversationScoped abstract class.

I've noticed that if I define an interceptor and I apply this interceptor to the same abstract (thus, applying it by inheritance to all the CDI beans mentioned before), it happens that:

the method this.getClass() called on an instance returns the proxy class and no more the class itself;
the performance of the application is dramatically getting worse, both during the initial startup both during the normal activity; it seems that the amount of memory used by the application has increased a lot, simply adding this interceptor.
I'm a little confused, because it looks like applying the interceptor makes the beans "managed", whereas they all should be seen as "managed" also without the interceptor, since they already were "named".

What am i missing? Did anyone have the same problem about performance? Is there something I can check?

Thanks in advance for your help.
money grubbing section goes here:
Why should you try IntelliJ IDEA ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!