http://www.onjava.com/pub/a/onjava/2003/05/28/jboss_optimization.html?page=last
Explains how to configure the cache invalidation bridge.
To pair two beans you need to assign them to same invalidation group.
This is done in jboss.xml
<entity>
<ejb-name>whatever</ejb-name>
<configuration-name>Standard CMP 2.x with
cache-invalidation</configuration-name>
<!-- Set to False on the read/write bean -->
<cache-invalidation>True</cache-invalidation>
<cache-invalidation-config>
<invalidation-group-name>yourname</invalidation-group-name>
</cache-invalidation-config>
See docs/dtd/jboss_3_2.dtd for more explanation.
Once you have the invalidatable cache configuration (above),
you can also use JMX to invalidate specific primary keys.
Regards,
Adrian
On Tue, 2003-12-09 at 11:59, Pedro Salazar wrote:
> Greetings,
>
> how can I invalidate a cache of entity beans? Is it possible to do it
> only for a specific instances?
>
> BTW, a read-only and a read-write views for the same entity beans where
> the update of a read-write entity bean would invalidate the read-only
> entity beans. It's possible and how?
>
> thanks.
>
> regards,
> Pedro Salazar.
--
xxxxxxxxxxxxxxxxxxxxxxxx
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user