[jboss-user] [JBossCache] - Help JBossCache for use it as
roberto
do-not-reply at jboss.com
Thu Jun 21 08:04:12 EDT 2007
I want use JBossCache to store information (as cached data) in the same transaction.
I know that I can do it..
I have a class A that retrieve some information, it's call class B and this calls can get info from cache (stored from A) and so on..
But all this object in the cache must be removed at the end of the transaction (when A finish).
I know that if i put my code in class A to remove all... it's simple.. but I want know if there is a way to do it automatically (when the transaction ends with commit or rollback, all entry in the cache will be removed)
Any idea?
I see the Transaction management for JBoss Cache.. but in this case if at the end I have a commit, entry are really stored in the JbossCache, and only if there is a roolback they are not stored...
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056439#4056439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056439
More information about the jboss-user
mailing list