Application context

What is the best way to store an object in ‘application’ scope.
Can i use ServletContextHolder and setAttribute on ServletContext?

Maybe just a managed bean? They are singletons by default.

Ok, Thanks.