sexta-feira, 6 de fevereiro de 2009

Avoid Java transactions pitfalls with Spring

Transaction processing should achieve a high degree of data integrity and consistency. This article, the first in a series on developing an effective transaction strategy for the Java platform, introduces common transaction pitfalls that can prevent you from reaching this goal. Using code examples from the Spring Framework and the Enterprise JavaBeans (EJB) 3.0 specification, series author Mark Richards explains these all-too-common mistakes.

quarta-feira, 4 de fevereiro de 2009

JavaEE 6 overview

Veja nesse artigo um overview sobre o que virá na versão 6 do JavaEE.

Algumas novidades no artigo:

* WebBeans 1.0
* JSF 2.0
* JPA 2.0
* Servlets 3.0
* JAX-RS 1.1

Fonte: TheServerSide

terça-feira, 3 de fevereiro de 2009

Overwrite methods

What's up?

this is more one tip,

if you forget this basic concept of overwrite methods


Code:


class TesteSobrescreverMetodo {
public void metodo(int i) { }
}

public class Main extends TesteSobrescreverMetodo {
public static void main(String argv[]){}


public void metodo(int i) {} //this method is overwrite because it is inherited of class TesteSobrescreverMetodo

void metodo(long i){} //method

void metodo(){} //overload of metodo, change de parameter, change de signature
}










enjoy!