[Logo]
Forums Register Login
Named CDI Bean with Interceptor - Memory Leak
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.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards


This thread has been viewed 126 times.

All times above are in ranch (not your local) time.
The current ranch time is
May 23, 2018 16:47:22.