Discussions
EJB programming & troubleshooting: How we can store cache data object at Business Tier in EJB/DAO?
-
How we can store cache data object at Business Tier in EJB/DAO? (3 messages)
- Posted by: maulik shah
- Posted on: July 18 2007 09:56 EDT
Hi, I want to store cache object at Business Tier in EJB/DAO. That object contains data, you can take example that I want to cache all country name and id which will use by DAO or EJB. How we can implement it? Statefull EJB will not used by other EJBs Regards, Maulik ShahThreaded Messages (3)
- Re: How we can store cache data object at Business Tier in EJB/DAO? by Alan Choy on July 24 2007 14:35 EDT
- Re: How we can store cache data object at Business Tier in EJB/D by Jeryl Cook on July 24 2007 14:56 EDT
- Example by sumit sharma on May 23 2008 01:45 EDT
-
Re: How we can store cache data object at Business Tier in EJB/DAO?[ Go to top ]
- Posted by: Alan Choy
- Posted on: July 24 2007 14:35 EDT
- in response to maulik shah
You can always use a static object or singleton to cache the reference data at your business tier. -
Re: How we can store cache data object at Business Tier in EJB/D[ Go to top ]
- Posted by: Jeryl Cook
- Posted on: July 24 2007 14:56 EDT
- in response to maulik shah
your are attempting to do cache say results from a search on the "service/business" tier. I've had very good success with using EHCache, and OSCache for method level caching..EHCache/OSCache will use the parameters passed to it as a key for the cache entry... used Spring however and not EJBs, ..but it can still work with ether technology. -
Example[ Go to top ]
- Posted by: sumit sharma
- Posted on: May 23 2008 01:45 EDT
- in response to Jeryl Cook
Can you please provide the some link or example for the same... i.e. using a static singleton object for caching Heavy data at the server end, so that we don't have to download it for every client call. Thanks, Sumit