Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Use EJB to hold a cached object in clustered environment

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello to all

I need to create a object to hold some cached data for access in a clustered environment, and this object will need to be refreshed from time to time.
Given this requirement, I am wondering if it is good decision decision to use a EJB to hold the object in order to be distributed.

My plan is write a stateless session bean, put the object to hold cached data as it's object variable.
This object's value will be refreshed periodically, while others will access the value by calling its access method.

What I need to know is will the refreshed data take effect on all instances in the cluster (since it is a EJB)?
Also, is this the best decision strategy? or you guys have a better idea to meet the same requirement?

Thank you for your input in advance

 
I found some pretty shells, some sea glass and this lovely tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic