-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate and Jboss Cache
PostPosted: Tue Feb 14, 2006 6:12 pm 
Newbie

Joined: Thu Nov 24, 2005 3:31 pm
Posts: 6
Does Jboss Cache support read-write caching? I know it supports read caching...but not sure if it supports read-write caching. As per 'Hibernate in Action', it does not support read-write caching


Top
 Profile  
 
 Post subject: Re: Hibernate and Jboss Cache
PostPosted: Wed Feb 15, 2006 2:11 pm 
Newbie

Joined: Wed Feb 15, 2006 9:22 am
Posts: 7
Location: Florham Park, NJ
rknr55 ;

I am not completely clear on what the read-write characteristics of other caching platforms are, but I assume it means that the cache writes through back to permanent storage on your behalf.

What I have observed with JBoss-Cache is that when you update an entity that is in cache, the cache, the cache is simply invalidated on write.

Here's an example of a remote call to a session bean, querying and persisting data.

Client:
Code:
client = clientService.getClient("886000003645");


JBoss Cache Shows:
Code:
item: CacheEntry(com.foobar.Client)[NICK'S BIKE SHOP,886000003645]


Client:
Code:
client = clientService.getClient("886000003645");
client.setClientName("BOB'S BIKE SHOP");
clientService.putObject(client);


JBoss Cache Shows:
Code:
Nothing


Client:
Code:
client = clientService.getClient("886000003645");


JBoss Cache Shows:
Code:
item: CacheEntry(com.foobar.Client)[BOB'S BIKE SHOP,886000003645]



Hope that's helpful.

//Nicholas


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

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.