You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Rastislav Komara / ET NETERA <ra...@etnetera.cz> on 2006/03/17 14:03:39 UTC

JCS, Hibernate, Transactions

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,
	i'm want to use JCS with Hibernate in multinode transactional
environment. Which hibernate cache strategy can be used with JCS? The
read-only model is not usable for my purposes.

Best regards, Rastislav Komara
- --
Rastislav Komara
Developer
ET NETERA | smart e-business solutions
~
[ www.ahold.cz       | www.annonce.cz    | www.datart.cz        ]
[ www.eurotel.cz    | www.knizniweb.cz    | www.nestle.cz        ]
[ www.siemens.cz   | www.telecom.cz    | www.volksbank.cz ]
Created by ET NETERA | Powered by jNetPublish
[i] www.etnetera.cz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)

iD8DBQFEGrOrAJ3mIyemzs4RAusHAKDDgVv/RMUFms6sVe/ytWnOF7j2XgCgpvBy
KpFdkRPqFr+PaemEgNAuE7w=
=OGEk
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: JCS, Hibernate, Transactions

Posted by Aaron Smuts <as...@yahoo.com>.
I'm not sure.  I do not cache in hibernate.  I cache
above my orm layer since I cache data from a variety
of sources (such as web services).  Basically, I cache
at a layer above my dao's, usually after converting
the data transfer objects, thereby achieving better
decoupling.    

The data manager layer has its own interface that
returns a particular type of object.  It in turn uses
dao's or web service clients that have their own
interfaces which return different types of object from
the manager.  Caching and queuing the refreshing of
stale data occurs at the layer above the dao.

Someone else may have the answer, for you, but I would
never let my orm package do caching for me.  I need
more control over the cache.  

Cheers,

Aaron

--- Rastislav Komara / ET NETERA
<ra...@etnetera.cz> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello,
> 	i'm want to use JCS with Hibernate in multinode
> transactional
> environment. Which hibernate cache strategy can be
> used with JCS? The
> read-only model is not usable for my purposes.
> 
> Best regards, Rastislav Komara
> - --
> Rastislav Komara
> Developer
> ET NETERA | smart e-business solutions
> ~
> [ www.ahold.cz       | www.annonce.cz    |
> www.datart.cz        ]
> [ www.eurotel.cz    | www.knizniweb.cz    |
> www.nestle.cz        ]
> [ www.siemens.cz   | www.telecom.cz    |
> www.volksbank.cz ]
> Created by ET NETERA | Powered by jNetPublish
> [i] www.etnetera.cz
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (MingW32)
> 
>
iD8DBQFEGrOrAJ3mIyemzs4RAusHAKDDgVv/RMUFms6sVe/ytWnOF7j2XgCgpvBy
> KpFdkRPqFr+PaemEgNAuE7w=
> =OGEk
> -----END PGP SIGNATURE-----
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jcs-users-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org