wood burning stoves
The moose likes Performance and the fly likes Data Caching in EJB application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Data Caching in EJB application" Watch "Data Caching in EJB application" New topic

Data Caching in EJB application

Son Java

Joined: Nov 23, 2001
Posts: 9
We are developing a large scale insurance project in J2EE with Swing Applet as Front End and EJB's at the middle tier.Server side call always goes thru session bean to entity bean for add and update. Reading is done from Session bean to database.
We have not yet implemeted any caching mechanism in the GUI as well in the server side.
I would appreciate if some one could give share their idea about practical implementation on caching both in server and GUI sideand point to some URL and sample implementation.
Stanley Tan
Ranch Hand

Joined: May 17, 2001
Posts: 243
Look into the CachedRowSet. Here's a link to an article: http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
One trick to investigate is to see if there are any tables in your database that are really and truly "read-only". For instance, in Insurance Applications you often have smaller tables of codes that change very rarely (like on a yearly basis). So, something we've done successfully is to read the entire table into memory as a singleton and have the business logic in the Session Beans use it as needed. There is a more detailed example in this article here:

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Jun Hong
Ranch Hand

Joined: Sep 05, 2001
Posts: 181
IBM has a thing called ACCESS BEAN. Copy Helpers are one of them. A copy helper access bean incorprates a single copy helper object that contains a local copy of attributes from a remote entity EJB. Methods are provided to flush the cache to the actual EJB database and refresh the cache from the actual EJB. Is this thing related?

Jun Hong<br />SCJP, SCJD, SCWCD, SCEA<br />IBM Certified Systems Expert(V4.0)
I agree. Here's the link: http://aspose.com/file-tools
subject: Data Caching in EJB application
It's not a secret anymore!