• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to maintain shared variable in a J2EE app deployed on a cluster?

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new to J2EE technology and I am writing this J2EE application where I am using stateless session beans to implement few services. This application will run on a cluster of app servers. I need to add MBeans to monitor few resources. One of these resources is "session timeout value". I want to provide an MBean using which I can get the current session timeout value and also set it to desired value.
My query is how should I store this session timeout value so that its available to all the beans running on different nodes in the cluster and any change in its value is reflected in all the nodes.

Thanks,
Tuls.
 
author
Posts: 580
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tuls,

Look into a clustered cache like JBossCache. In EJB 3.1 you will be able to use clustered singletons (not available yet).

Hope it helps,
Reza
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic