Crear Bean con scope Session con Vaadin Spring

Hola

Necesito crear en Vaadin Spring un BEAN de scope de sesión para mantener mis datos (se que podría utiliar la sesión de Vaadin, pero quiero probar de esta otra manera)

Nota, estoy usando Broadcast, Push, Vaadin 8

He probado ha hacer muchas cosas, la última es en la clase de Configuración:


@Configuration
@EnableAsync
@EnableCaching
public class Configuracion {
	@Bean
	@Scope(value = WebApplicationContext.SCOPE_SESSION, proxyMode = ScopedProxyMode.TARGET_CLASS)
	public Ses getSes() {
	    return new Ses();
	}
}

Siendo Ses la clase con mis datos, y luego intento leer la info con

@Autowired
Configuracion config;


Y luego config.getSes().getUid()

Y tanto de esta manera como con otras que he probado me da la siguiente exception:

Error creating bean with name ‘scopedTarget.getSes’: Scope ‘session’ is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.

Alguien me podría ayudar?
Muchas gracias!!!

Hola
La solución es sencilla:
@VaadinSessionScope

Un saludo.