[jboss-user] [JBoss Cache] - How to do jboss caching

Amol Umrani do-not-reply at jboss.com
Tue Aug 31 09:48:40 EDT 2010


Amol Umrani [http://community.jboss.org/people/amolumrani] replied to the discussion

"How to do jboss caching"

To view the discussion, visit: http://community.jboss.org/message/559789#559789

--------------------------------------------------------------
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
[http://community.jboss.org/message/559789#559789]

Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100831/5b338957/attachment.html 


More information about the jboss-user mailing list