• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

What is the behaviour of Singleton class in weblogic server Cluster Environment

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In my project there are lot of modules. Each module has their own configuration data. I want maintain this configuration throw singleton class. Upto now there is no proble. Problem is when i am using Cluster. So what is the behaviour of Singleton in cluster environment. Is the Singleton data is synchronized in all servers in cluster.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You cannot have a guaranteed singleton behavior on a network cluster. However if your data is read-only then you need not worry (though you may end up with multitons)
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you do want configuration data available consistently across the cluster, you could place it into the WebLogic JNDI tree and set it up to be clusterable.
Moving this to the BEA/WebLogic forum...
Simon
 
Venkateswara Rao
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
If i am using JNDI, accessing JNDI is very expencive as per my knowledge and my configuration data is also big. Should i use JNDI to hold these config data or is there any solution. Pls reply as soon as possible.
Thanks and Regards
Venkateswara Rao
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic