EJB design: I need only one instance
After reading the discussions about singletons on this forum, I am still not sure how one goes about creating an object that only one instance of it existing on the server for the entire application. The EJB Pattern book says use a "Networked RMI Object singletons". Has anyone implemented such RMI object ?
Any help in this matter will be great.
Thanks in advance.
Alex Pisarev has a clear view on this subject: