Re: how to implement "READ MOSTLY" CACHE
Vincent Shek <[email protected]>
| Newsgroups | gmane.comp.java.sun.ejb.general |
|---|---|
| Message-ID | <1EF41F9DE907924D82755809B17174357A7C0E@tfsmail.tfprod.taifook.com> |
Hi Pedro, I don't think there is a "Read Mostly" cache for JBoss. I am using Weblogic 8.1 and they have a "ReadOnly" feature that provides a cluster-wide cache. For JBoss, you can use the Seppuku pattern (http://dima.dhs.org/misc/readOnlyUpdates.html). However, read-only pattern is difficult to implement if you have other applications that update the same database at the same time. For those who use read-only patterns, how do you invalidate the cache if some external systems update the database? Do you use database triggers? Hopes this help, Vincent -----Original Message----- From: Pedro Salazar [mailto:[email protected]] Sent: Friday, November 14, 2003 7:54 PM To: [email protected] Subject: how to implement "READ MOSTLY" CACHE Greetings, I'm using XDOCLET to generate my EJB descriptors and I would like to know how can I define a polite of "read mostly" cache for my entity beans? I now that I should have my entity beans mapped as xxxRO and xxxRW. However, I don't know if I have to *duplicate* my beans java classes, and I don't know also how to define the commit isolation level for my entity beans (CMP). Any hints would be very appreciated :-) I'm using JBOSS... regards, Pedro. -- PS [email protected] PGP:0E129E31D803BC61 =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [email protected] and include in the body of the message "help". =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [email protected] and include in the body of the message "help".