-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Re-using POJOs with and without caching
PostPosted: Sun Apr 10, 2011 9:21 am 
Newbie

Joined: Sun Apr 10, 2011 8:47 am
Posts: 1
Hi,
I'm re-using the same domain classes across 3 apps. 1 (public-facing) app is read-only, the other 2 apps (admin and jobs) are read/write.

For some entities, i want them cached in the public-facing webapp but not by the other 2 apps. (The cache is NOT distributed).

What's the best way of having different cache configurations for different apps? (I'm using annotations and ehcache).

I'm considering having a different ehcache.xml for each app and set maxElementsInMemory=0, overflowToDisk=false

Is this feasible? Is there a better way?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.