[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Messages posted by: apaliwal  XML
Profile for apaliwal -> Messages posted by apaliwal [198] Go to Page: 1, 2, 3  ...  12, 13, 14 Next 
Author Message
You are likely missing ehcache-terracotta-xxx.jar.

Please add the terracotta-toolkit-<API-version>-runtime-<version>.jar as well.
If you want to use custom POJO's with toolkit, you need to do things

1. Make them serializable
2. Serialize the objects before inserting them into toolkit meaning you will be adding byte[]

HTH !
Download jar from here http://sourceforge.net/projects/ehcache/files/ehcache-nonstopcache/
Its transparent to User. You put element in cache and when cache can't grow larger, then if configured overflows to disk.

Not sure I understand what you are trying to do here.
These two post shall be of help

http://blog.terracottatech.com/2009/02/offloading_a_db_even_when_upda.html

http://blog.terracottatech.com/2009/04/answering_a_readers_question_w.html
Thanks for sharing !

Would be great if you can upgrade to latest ehcache version
Thanks for Sharing ...
See this Thread http://forums.terracotta.org/forums/posts/list/3840.page

This is for Express, but Custom would be similar. you would need tim's for Custom.

BTW, any specific reason you need the Custom install? Express is the way to go.
Not sure at this point about manually expiring an element, however unlocked read views is something which you should be using

http://ehcache.org/documentation/unlocked_reads_view.html
Glad to know its resolved.
You find the source here

http://svn.terracotta.org/svn/ehcache/trunk

Here is the test source

http://svn.terracotta.org/svn/ehcache/trunk/core/src/test/java/net/sf/ehcache/distribution/RMIDistributedCacheTest.java

Here are the config files

http://svn.terracotta.org/svn/ehcache/trunk/core/src/test/resources/distribution/

HTH !
1)have downloaded the ehcache server .war and deployed in tomcat.
2)Need to configure the cache manager to handle caches (but unable to add caches to the cache manager it says "identifier expected").

>> Do you need to add caches at runtime? If not configure them in ehcache.xml and use them

3)do i have to make any changes in the web.xml of ehcache server?if so wat are they?

>> Add caches statically in ehcache.xml

4)all the caching configuration should be part of the REST application i have developed or should it be seperate and be configured in tomcat?

for example : If i have created a cacheManagerLoader.java(which initialises the ehache.xml) where should this be placed?

>> Ehcache server provides a RESTful interface. If ehcache can be made part of your App, you can use cache directly by calling cache out/get API's.

I feel you are mixing two things here. Choose either the RESTFul interface to access cache remotely (as a client) or use in process cache where you directly access cache via out/get api's

HTH !
Can you elaborate a bit further?

Are you using Hibernate Query cache? Can't get much from description where you are caching and other details.
Glad to hear that the problem is resolved :)
To add to what Greg said

1. Yes you can use it for HA

2. DSO is the core platform. If you use Ehcache backed by Terracotta, you will use it transparently. There is no need to use DSO features explicitly. I hope that's what you want to do

HTH!
 
Profile for apaliwal -> Messages posted by apaliwal [198] Go to Page: 1, 2, 3  ...  12, 13, 14 Next 
Go to:   
Powered by JForum 2.1.7 © JForum Team