• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Rajesh Manohar
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.
 
Valentin Tanase
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!