java/j2ee tips and blueprints
java/j2ee tips and blueprints
It is a very sad thing that nowadays
there is so little useless information.
Oscar Wilde
Java7 Wish: Object/Bean Factory
One of the most critic point for java
return Class.forName(className).newInstance();
Upon since it seems this method bring the ultimate extensibility power to java.
But Now server & client applications became more and more complicated this feature became insufficient.
more...
JGroups-Spring In Action
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
more...
hibernate cache injection: missing…
currently hibernate version is 3.2.5 and there is still something basic missing: cache injection.
more...
Clustering Acegi via JGroups (DistributedHashtable)
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..
more...
DistributableEventPublisher for Spring via JGroups
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)
more...
light-weight distributed messaging via JGroups
JGroups is a framework that provide seamless networking utilities for java/j2ee applications. As a light-weight alternative to JMS here is an example.
more...
You can know the name of a bird in all the languages of the world, but when you're finished, you'll know absolutely nothing whatever about the bird... So let's look at the bird and see what it's doing -- that's what counts. I learned very early the difference between knowing the name of something and knowing something.
Richard Feynman