Sunday, April 17, 2011

Port Royale 2 City Editor

JEE EJB 3 Why not? Java





'm a promoter of the use of Spring but X is why I am studying a little JEE 5 and I'm really surprised by its simplicity, change a lot. The only thing critical is the time to raise jboss or glassfish or other JEE server is more than just use tomcat or jetty (obviously).

EJB 3 specification leaves behind the bad taste that had previous versions of EJB in developing. The most important step now is pojos EJB, which by means of annotations can be inferred behavior. There is no need to inherit from any object, make interfaces (thank God).

Consider the types of beans that exist: Message-Driven Beans: Asynchronous messaging is a paradigm in which two or more applications communicate using a message that describes a business event. These beans can produce and consume asynchronous messages. Entity Beans: These are modeling our data objects (POJOs) and are persisted through javax.persistence.EntityManager. Using JPA (described in JSR-317) we persist our entity beans as if we used a common ORM.

This is a short summary of which provides us with EJB 3. In the next post will expand!









0 comments:

Post a Comment