Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 perf4cdi profiling breaks SessionScoped beans

open
nobody
None
5
2010-09-27
2010-09-27
Josh Hill
No

If you add @Perf4jProfiled to a SessionScoped bean you will get a deployment time error stating the bean is not passivation capable.

According to the spec in order for a bean to be passivation capable all interceptors must also be serializable.

The following fixed the issue for me locally.

public class Perf4jProfiledInterceptor implements Serializable {

Discussion