4 Replies Latest reply on Jun 17, 2004 3:11 AM by a_amitgarg

    Behaviour of Singleton Classes while Clustering?

    Pooja Chauhan Newbie


      A simple question of Yes/No.
      In case my application targets clustering in future, is it O K to use writable singleton classes in the ear?

      There is a case here when a singleton's properties are modified at run time. Of course this modification dictates further bahaviour of the application. I am wondering, because clustered servers run in different JVMs, wud it result in separate instances of the singleton for different JVMs? (which though does not affect read-only cases, becomes an issue here)

      So, the question is, whether clustering tackles this issue or shud I avoid writable singletons in my application?

      --- Pooja