Cacheonix as a Hibernate L2 cache

Cacheonix support forum is dedicated to support requests, bug reports and feature suggestions.
ramanauppala

Cacheonix as a Hibernate L2 cache

Postby ramanauppala » Wed Aug 31, 2011 1:23 am

Hi,

I have configured the Cacheonix as L2 Cache like below:

<property name="hibernate.cache.provider_class">cacheonix.plugin.hibernate.v32.HibernateCacheonixCacheProvider</property>

While i am accessing the application i am getting the below error:

Cache configuration not found and default configuration template is not set: com.secure.downloads.entity.SeedInvitationCode

Is the configuration is cacheonix-config.xml ? I see we have this xml in the cacheonix.jar.
do we need to configure some property to let the application uses the xml ?

Please give some inputs about how to configure this ?

support

Postby support » Wed Aug 31, 2011 1:59 am

There is a couple of things you need to do:

1. Add a default cache configuration to your cacheonix-config.xml. It is usually located in the src directory in your project alongside other configuration files. Cacheonix uses the default configuration to create a cache if there is no a cache configuration with a name the same as the entity class.

2. Add a cache configuration for a particular entity if the default is not enough.

In your case the configuration should look like the following:

Code: Select all


<?xml version ="1.0"?>
<cacheonix xmlns="http://www.cacheonix.com/schema/configuration"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://www.cacheonix.com/schema/configuration http://www.cacheonix.com/schema/cacheonix-config-2.0.xsd">

    <local>

        <!-- Default configuration that Cacheonix will use as a template -->
        <localCache name="default">
            <store>
                <lru maxElements="1000" maxBytes="10mb"/>
                <expiration timeToLive="60s"/>
            </store>
        </localCache>

        <!-- Cache for a particular Hibernate entity -->
        <localCache name="com.secure.downloads.entity.SeedInvitationCode">
            <store>
                <lru maxElements="500" maxBytes="5mb"/>
                <expiration timeToLive="60s"/>
            </store>
        </localCache>
    </local>
</cacheonix>

SamSairm
Posts: 514
Joined: Sun Mar 03, 2019 1:52 am
Location: USA
Contact:

hsvrsllj

Postby SamSairm » Wed Mar 06, 2019 6:13 am

[url=https://buyciproonline.com/]cipro[/url] [url=https://lasix20.com/]buy laxis with mastercard[/url] [url=https://amoxicillinwithoutprescription.com/]amoxicillin[/url] [url=https://motiliumtablets.com/]buy motilium online[/url] [url=https://advairinhalers.com/]advair buy[/url]

LisaSairm
Posts: 381
Joined: Sat Feb 23, 2019 9:13 am
Location: USA
Contact:

iqxbxctvs

Postby LisaSairm » Tue May 07, 2019 10:01 pm

[url=https://acyclovirc.com/]acyclovir[/url]

JoeSairm
Posts: 327
Joined: Sat Mar 02, 2019 9:48 pm
Location: USA
Contact:

zixbjplq

Postby JoeSairm » Tue May 07, 2019 11:10 pm

[url=https://atarax25.com/]atarax 25 mg tablets[/url] [url=https://amoxicillin250.com/]amoxicillin 250[/url] [url=https://propranolol80.com/]propranolol 80 mg[/url] [url=https://furosemide80.com/]furosemide 40 mg tablets[/url] [url=https://phenergandm.com/]phenergan buy online[/url] [url=https://lisinoprilmed.com/]lisinopril 10mg[/url]

KimSairm
Posts: 323
Joined: Sat Mar 02, 2019 3:19 pm
Location: USA
Contact:

ypjkblfv

Postby KimSairm » Wed May 08, 2019 12:41 am

[url=https://propranolol80.com/]order propranolol online[/url]

AmySairm
Posts: 320
Joined: Tue May 07, 2019 6:26 pm
Location: USA
Contact:

euyzfdpnmj

Postby AmySairm » Wed May 08, 2019 1:55 am

[url=http://atarax25.com/]atarax 25mg[/url]

MarySairm
Posts: 379
Joined: Mon Feb 25, 2019 9:19 am
Location: USA
Contact:

hpcvgwqlx

Postby MarySairm » Wed May 08, 2019 4:11 am

[url=https://tadalafilus.com/]tadalafil[/url] [url=https://prednisone40.com/]prednisone 10mg tablets[/url] [url=https://cialis50.com/]cialis[/url] [url=https://ventolinhf.com/]ventolin[/url] [url=https://acyclovirc.com/]acyclovir[/url] [url=https://levitra10.com/]levitra canada[/url] [url=https://sildenafilcitrate50.com/]sildenafil citrate 50mg tab[/url] [url=https://vardenafil40.com/]vardenafil generic levitra[/url]

PaulSairm
Posts: 385
Joined: Sun Feb 24, 2019 4:04 pm
Location: USA
Contact:

nrnlxuciy

Postby PaulSairm » Wed May 08, 2019 4:50 am

[url=https://sildenafilcitrate50.com/]sildenafil tablets[/url] [url=https://cialis50.com/]cialis 5 mg best price usa[/url] [url=https://acyclovirc.com/]order acyclovir online[/url] [url=https://ventolinhf.com/]ventolin hfa 90 mcg[/url] [url=https://tadalafilus.com/]online tadalafil[/url]

JaneSairm
Posts: 354
Joined: Sun Mar 03, 2019 7:41 am
Location: USA
Contact:

qlhocraf

Postby JaneSairm » Wed May 08, 2019 4:54 am

[url=http://doxycycline2.com/]buy doxycycline hyclate 100mg without a rx[/url]

EvaSairm
Posts: 320
Joined: Sat Mar 02, 2019 2:27 pm
Location: USA
Contact:

nlktkiio

Postby EvaSairm » Wed May 08, 2019 5:27 am

[url=https://zithromax500.com/]zithromax 500[/url]

JudySairm
Posts: 316
Joined: Tue May 07, 2019 4:49 pm
Location: USA
Contact:

nyujqwqulv

Postby JudySairm » Wed May 08, 2019 5:41 am

[url=https://propranolol80.com/]buy propranolol online[/url]

AlanSairm
Posts: 311
Joined: Wed May 08, 2019 12:11 am
Location: USA
Contact:

djeouuslxi

Postby AlanSairm » Wed May 08, 2019 5:42 am

[url=https://lisinoprilmed.com/]lisinopril oral[/url] [url=https://phenergandm.com/]phenergan[/url] [url=https://atarax25.com/]atarax 25mg[/url] [url=https://amoxicillin250.com/]amoxicillin 250[/url] [url=https://propranolol80.com/]propranolol buy online[/url]

JimSairm
Posts: 284
Joined: Sun Mar 03, 2019 7:16 am
Location: USA
Contact:

zgihsrho

Postby JimSairm » Wed May 08, 2019 5:48 am

[url=https://propranolol80.com/]propanolol 20 mg to buy without prescription[/url] [url=https://phenergandm.com/]buy phenergan online[/url] [url=https://lisinoprilmed.com/]generic drug for lisinopril[/url] [url=https://furosemide80.com/]furosemide price[/url] [url=https://amoxicillin250.com/]amoxicillin 875 mg[/url]

AnnaSairm
Posts: 401
Joined: Sun Mar 03, 2019 7:41 am
Location: USA
Contact:

nybhlfls

Postby AnnaSairm » Wed May 08, 2019 5:55 am

[url=https://zoloft75.com/]buy generic zoloft online[/url] [url=https://tadalafil20tab.com/]tadalafil[/url] [url=https://albuterol24.com/]buy albuterol[/url] [url=https://metformin1000.com/]metformin hcl 500 mg[/url] [url=https://buyacyclovirnoprescription.com/]drug acyclovir[/url] [url=https://synthroid1.com/]synthroid 100 mg[/url] [url=https://cialis3.com/]online cialis pharmacy[/url] [url=https://celebrex100.com/]celebrex buy[/url] [url=https://buypropeciafinasteride.com/]propecia buy online[/url] [url=https://lisinopril0.com/]generic drug for lisinopril[/url]


Return to “Cacheonix Support”

Who is online

Users browsing this forum: No registered users and 3 guests