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
Firefox Download Day 2008
Download the newest version of the Ultimate browser
http://www.spreadfirefox.com/en-US/worldrecord/
get Yours from http://www.spreadfirefox.com/en-US/worldrecord/certificate_form
more...
Workflow Framework Comparison
Workflow / bpm have very short history. But now there a several mature frameworks you can use in open source world.
Today there are lots of projects talking about workflow. most of them have totally different domains. (ERP/CRM/internal) and in response there are lots of frameworks to solve this problem. Here is my experience:
more...
Moving from Tomcat to JBoss
<!–<scope>compile</scope>–>
<scope>provided</scope>
After 5 years I have returned to jboss because I wanted to evaluate JBPM (I’ll write about it later). But this I already knew pitfulls of JEE . Avoid EJBs!.
I downloaded latest stable version of jboss and run it empty to test: no errors, perfect!
I configured my ide (idea 7.0) and run it with a simple jsp application . Awesome still no error. Idea 7.0 realy has a good integration with jboss. Only imported point i you should name exploded folder name with proper suffix (.jar/.war/.ear)
At this what u have out of box :
Jboss-ws
JMS
Hibernate
Quartz
javax.mail
javax.activation
This means when u move from tomcat/jetty to jboss you should change maven dependecies of these projects. They are already ready and running
more...
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...
Daily Java By Altuure
Yesterday I have created a yahoo pipe for daily java news and articles.
I have added the sites below Any further idea would always welcome
more...
Annotations have been more successful than XML
Annotations came to JDK with JDK5 (2004) since then they evaluated and are accepted so widely and even became more powerful and useful than XML in just 4 years.
While you are developing a project with java at any scale you’ll need a very large number of XML files defined in very different API’s and DTD/XSDs. Which makes configuration very complex.
eg:struts.xml,tiles.xml,validation.xml,hibernate.cfg.xml,spring-context.xml,web.xml,and so on
Although it is easy to read and modify there are lots files
Now with annotations:
more...
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...
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
