RE: OSCache, caching, Decorator pattern
"Sullivan, Sean C - MWT" <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <462D5240F6F9154AB0F9B345A5F03E3E012E2D43@cnfqe029.cnf.prod.cnf.com> |
Our DAO communicates with an ERP system using a homegrown XML protocol. We are using OSCache to cache XML responses. Cayenne / Hibernate / OJB / Torque are not useful in our situation. -Sean > -----Original Message----- > From: Andrus Adamchik [mailto:[email protected]] > Sent: Thursday, January 08, 2004 1:17 PM > To: Sullivan, Sean C - MWT > Cc: [email protected] > Subject: Re: [Opensymphony-oscache] OSCache, caching, Decorator pattern > > > On Dec 29, 2003, at 6:50 PM, Sullivan, Sean C - MWT wrote: > > > My company is using the DAO pattern for data access operations. > > > > I am looking for articles or books that describe if/how to apply > > the Decorator pattern for the purposes of caching. > > > > Thanks in advance. > > Hi Sullivan, > > I know that a choice of DAO over other persistent technologies may not > be yours, and you and your company may have lots of reasons to stay > with DAO. But it seems to me that by attempting to add things like > caching to your framework you are basically building your own Object > Relational Mapping (ORM) implementation. Writing a full-featured ORM > from scratch and optimizing it for performance (esp. with a distributed > cache) is far from a trivial task. Adding decorators doesn't make > things easier either.... > > Why not use an existing mature ORM framework instead? I can recommend > Cayenne for an ORM (being one of its creators): > > http://objectstyle.org/cayenne/ > > But there are many other choices as well. > > ------------------------------ > Andrus Adamchik > Cayenne Object-Relational Framework > http://objectstyle.org/cayenne/ ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html