JBoss Community

How to do jboss caching

reply from Amol Umrani in JBoss Cache - View the full discussion

Hello Navin,

 

I have use sample-configurations.xml file for configurating infinispan.

 

I have done as follows..

 

EmbeddedCacheManager cacheManager = new DefaultCacheManager(sample-configurations.xml);

Cache cache = manager.getCache("Local");

bcoz Local is the namedCache in my xml

then cache.put("Key1", "value1", 10, TimeUnit.SECONDS);

and i have called this class from jsp for result..

when i have deployed the jsp following is the error shown on server window..

Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"urn:infinispan:config:4.0":properties}' is expected.

So please help me regarding this..

Thanks,
Amol

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community