Image via Wikipedia Most probably you have management link that enable you clear cache manually ! Then there is something totally wrong in your software/project :) Your software is : Not aware of itself Do not now what it is under going now Do not know how to respond to these operations ...
Image by Neil T via Flickr I have been developing java application for more then 6 years. Most of these years I have used and evaluated open source projects. Here I'll try to explain my open source java stack.
If your are new with jgroups ,take a look JGroups Basic and other jGroups posts Some Sample Code you may use for adding networking utilities to your Application Two FactoryBeans for JGroups ChannelBeanFactory for creating JChannel Instances ReplicatedHashMapFactory for ReplicatedHashMapFactory Instances
in my previous blog I suggest to use jms or caching for a distributable SessionRegistry but I found a more simple solution JGroups - DistributedHashtable :JGroups gives us such a perfect simple class to distributed maps. All read-only operations runs on local copies perfect merge strategies. easy implementation and configuration vs..
Messaging is really easy through a single JVM. For a distributed environments JMS is strongly recommended. but for smaller and simple projects here is and example implementation via JGroups. Usage DistributableEventPublisher distributableEventPublisher=.... distributableEventPublisher.castEvent(TEXT_MESSAGE/XML/Serializable); requirements: springframework 2+ JGroups 2.6.1 JUnit (for test)
JGroups is a framework that provide seamless networking utilities for java/j2ee applications. As a light-weight alternative to JMS here is an example.
JGroups is a basic networking api for java.It handles all networking issues for u with very complex configuration and simple interfaces.Here are some basic introduction for JGroups