i have some infrastructural singletons that needs to be initialized and need to be accessed by both ejb's and servlets.the web container and the ejb container dosent have to use the same JVM and also my ejb's dosent have to be on the same VM. because singletones are static(at least the classic pattern) i need to make sure that the initailazion will take place to all jvm's. to solve this problem i can design it so every singltone will initialize him self but form where? i cant use files because i'm not allowd to access them when i'm working under the EJB container. dose any one solved this problem ?