Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

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

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • Quote
  • Report post to moderator
Thanks for your reply. I use weblogic.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • 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.
 
Danger, 10,000 volts, very electic .... tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic