[jboss-user] [JBoss Cache: Core Edition] - How to evict know out of date objects (after SQL statement)

mvera do-not-reply at jboss.com
Tue Jul 15 11:03:50 EDT 2008


Hi,

I intend to use jbosscache as level 2 cache with EJB entites.

Cache evictions are done only when a modification occurs inside the EntityManager.

But for performances reasons it may be usefull to send SQL statements that modify database, for example you may want to delete hundreds of objects in a single  SQL statement instead of getting all objects iterate over them. Update of objects is also possible.

Suppose I know (in the same transaction) which objects are modified or deleted. Is there any way to send this list to JbossCache ?

If this is not possible, what is the solution ? Is it possible to use cache level 2 with entities when databse is modified outside of the entity manager ?

Mickaël

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164520#4164520

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164520




More information about the jboss-user mailing list