Results 1 to 2 of 2

Thread: Transaction-aware cache?

  1. #1
    Join Date
    Apr 2005
    Posts
    23

    Default Transaction-aware cache?

    We would like to cache read/write data in our system. We currently have a caching solution built on an opensource caching product -- jocache. If it matters we're currently using WebLogic 6.1. Our DAO layer is a homebrew hodgepodge.

    http://jocache.sourceforge.net/

    The issue with caching writable data is that if a transaction is in effect, we must not "commit" cached data changes (updates/creates) if the transacton is rolled-back. What I mean by "commit" in this sense is update the cache with the new data, to reflect the state of the underlying database. In WL, it looks like we can deploy our own JCA to become "transactionally aware" to JTA.

    Is there a more general solution to this issue that is not J2EE/WebLogic-dependent (Spring-provided or otherwise). I'd rather not be tied to J2EE but I Haven't seen any way to get callbacks during the transaction life cycle with anything then JTA.

    Thanks!

  2. #2
    Join Date
    Feb 2005
    Location
    Boston, MA
    Posts
    1,142

    Default

    JBoss Cache is transactional and distributed. Check it out here. It can be configured to work inside an app server like Weblogic Server.

Similar Threads

  1. Unit testing with JOTM and JtaTransactionManager
    By lalle in forum Architecture
    Replies: 1
    Last Post: Oct 15th, 2005, 09:05 AM
  2. Replies: 0
    Last Post: Jun 6th, 2005, 06:22 AM
  3. Replies: 3
    Last Post: Nov 19th, 2004, 07:16 PM
  4. Replies: 8
    Last Post: Sep 23rd, 2004, 01:12 AM
  5. Transaction pb Hibernate/MySQL
    By syluser in forum Data
    Replies: 2
    Last Post: Aug 28th, 2004, 02:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •