Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Cache DTO's in Clustered Env. - How to?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are the ToDo's to be followed inorder to cache the DTO in the clustered environment.

For example:
I need to cache the some data when the application starts up and need to use that till the server is shut down.

Note: DTO is the Value Object - Plain Java Bean with attributes and public set and get methods.
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rajesh,

I don�t think there is any standard way of doing this. However different containers have different caching strategies. JBoss for example have a way to cache POJOs and replicate the cache across the cluster, while Weblogic on the other hand allows entity ejbs to be cached if they implement the readonly concurrency strategy.
What container are you using?
Regards.
 
Rajesh Manohar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply. I use weblogic.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the read only concurrency strategy for entity ejbs:
http://e-docs.bea.com/wls/docs81/ejb/entity.html
Regards.
 
reply
    Bookmark Topic Watch Topic
  • New Topic