Beans annotated with @Scope("session") should be serializable.