Can anyone explain the full process of implementing a Singleton in a Java EE 6 app? I'm assuming that I shouldn't be creating a singleton in the typical way of declaring a static variable and should be using the @Singleton
annotation? Do I have to do it this way?
Is it just a case of declaring it @Singleton
and that's it? Do I have to do anymore to the class?
What do I then need to do to access the singleton in my other classes?