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
Code Generators OUT, Wizards IN
Code generation and development trends in java.
Brief History:Code Generation In Java
Code Generation was a must for J2EE because of lots of .xml, .java and .properties files . There are less code-reuse and less components. So if you are developing medium or enterprise applications your first step would be seeking a code generator. And finally you would find one or build a small code generator . And after some development and training you have something miraculous:Code Generated and lots of code working with pretty UI’s and interfaces.
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...
JAXB quickstart via maven2
JAXB is a java framework to XML-Java transformations.
JAXB is 2.1 has a very simple API like castor and jibx And annotation driven transformers. Although those configurations can be written manually JAXB has a code generator to generate java files from XSD files. Here is sample JAXB tutorial using maven2:
more...
hibernate cache injection: missing…
currently hibernate version is 3.2.5 and there is still something basic missing: cache injection.
more...
Why I haven’t tried JPA?
I have been implementing java for 4 years and what I have learned: “not all Java API’s are good” but there are some open/vendor APIs you should prefer.
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...
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