Xebia

Blog Xebia France

J2EE, Agility and SOA

September 15th, 2009

Servlet 3.0, 3 notable points

Servlet 3.0 is an important revision of , she brings the lot of novelties: simplification, pluggabilit , support of the asynchronous, security and other modifications minor. This JSR, crossed in final draught in May denier, will be part of novelties brought by Popular dance EE 6 the exit of which should not defer. But that hides t-il behind this new version? Simple dusting after 161 JSR of distance since the last version 2.5 or true advances? It is the question in which we are going to try to answer in the course of this article by focalizing us on 3 notable points of this new version:

Read the continuation of this article

June 19th, 2009

GOOGLE Guice: Advanced Injection

As part of an article of introduction to Guice, we had seen an injection of simple dependency, answering a relatively basic need.

In this second article, we are going to discover more evolved tools of injection, which should allow us to accomplish later our first 'real ' example of realisation Guice.

Read the continuation of this article

May 11th, 2009

@Inject standardization of the injection of dependency

Quite a lot of noise last week in the blogosphere Popular dance with the announcement by GOOGLE and SpringSource of a new proposal of JSR devoted to the injection of dependency: @Inject (  Annotations for Dependency Injection  ).
As underlines it ' Crazy ' bobsleigh Lee, the main author of Google Guice, the exit of Spring 1.0, already 5 years ago, brought the injection of dependency in masses, via a file of possessing shape. 3 years ago, GOOGLE Guice offered the same thing via annotations (and SpringSource offers the same thing since Spring 2.5).

If the success of GOOGLE Guice is limited enough facing the tidal wave Spring, the official report is there: a standard is missing. As both bookshops are not compatible, if you display to another plan / team a bookshop containing dependency injected by GOOGLE Guice, and than the other team uses Spring, she will have to redefine all beans and their dependency in a file of shape Spring (or of annotations Spring).

@Inject offer therefore to standardise annotations, to return portable on different frameworks (Guice, Spring, Tapestry IOC, etc.) injectable classes.

Read the continuation of this article

April 24th, 2009

Begin the injection of dependency with Tapestry IOC

When they speak about injection of dependency, they think right away in which is held under footlights. It is also possible to think of the youngest child Guice approached in the article Google Guice 2: The bases of the injection of dependency. But you should not forget who, also, gives the solution for the injection of dependency. Tapestry IOC, not to merge with the framework of development Web Tapestry 5, is very strongly inspired of Guice. Its shown purpose is to pull the best of Guice while bringing the inheritance of its late elder brother Hivemind. They keep therefore zero objective XML in the remplacant by code Popular dance. Among the advantages of this technology, they will name:

  • The starting of an application is quicker with a shape IOC in annotations Popular dance than with a shape XML in parser
  • It is possible to test unitairement the modules of injection since it is about class simple Popular dance
  • Ended laboured shape in XML

I even feel like topping up that the training of one IPA - INTERNATIONAL PHONETIC ALPHABET Popular dance is quicker than that of a syntax XML. Just as Guice, Tapestry IOC concentrates on the injection of dependency and does not try to give a complete stack of development as makes it Spring. Neither Aspects, nor pattern Template expensive to Spring are found. To meet needs of programming by aspect, Tapestry IOC offers interceptors who can decorate services. On the other hand, in Tapestry IOC, injection is defined in one or several module (s) each of them able to contribute to shape and to services of application.

In this first article of series Tapestry 5 which begins today, we will see the bases of injection with Tapestry IOC and difference in comparison with Spring and Guice.

Read the continuation of this article

April 15th, 2009

Google Guice 2 The bases of the injection of dependency

Guice (pronounce Juice) is the framework of injection of dependency of GOOGLE. The shape of dependency is made by code, with the aid of annotations, and requires therefore the use of Popular dance 5.
GOOGLE works currently on V2 of his framework, who hesitates to go out. However, a regular update of the Wiki of plan and publication snapshots already allow to make a good idea of this alternative in the injection of dependency to Spring .

We start a series of articles today which is aimed at making you touch of the finger the big freedom which gives the injection of dependency by code. We will go progressively of basic concepts of Guice 2.0, towards an advanced use of the framework.

Read the continuation of this article

October 1st, 2008

What you perhaps missed in the third quarter 2008

Here is the list of tickets most read on this blog in July, August and September:

10 command of logs applicatives

Throughout the cycle of life of an application J2EE, it is necessary to have quality traces:

  • during development, to follow the single-step operation and to discern possible anomalies.
  • during the recipe, in order to corr ler functional anomalies and execution of the programme.
  • during working, to watch the "good health" of application.

But to get quality traces is not a coarse exercise. That is why we offer you our 10 command of logs.

Read this article

Simplify your shape Spring 2.5 with annotations

Spring 2.5 since November 19th, 2007 as we announced him, some time ago, in our review of the papers. You as me wisely updated your poms Maven2 towards release last of Spring (normally and mostly compatible with versions 2.0.x).

But did you really use novelties of this version in term of shape?

Read this article

Rival programming: fundamental notions

To play with Threads is not coarse. In computer science of management, this difficulty is fortunately concealed by the servers of application and IPA - INTERNATIONAL PHONETIC ALPHABET specific. Mostly, they allow to the developers to cut themselves off from these pressures and to concentrate on code job, less technical. It happens however that it is necessary to get up again handles. Some needs indeed already encouraged you to make announce 2 Threads.
If development is not easy, the debug can become a calamity! Rival programming raises however only 3 major types of problems. Having made opinion poll around you, the developers link key word too fast synchronize in the multithreading without including really functioning. Ask them then to describe you the utility of key word volatile

This article returns on the main principles of rival programming.

Read this article

August 8th, 2008

Simplify your shape Spring 2.5 with annotations

Spring 2.5 since November 19th, 2007 as we announced him, some time ago, in our review of the papers. You as me wisely updated your poms Maven2 towards release last of Spring (normally and mostly compatible with versions 2.0.x). But did you really use novelties of this version in term of shape?

Read the continuation of this article

May 2nd, 2007

The catch of measure in AOP with JAMON

Here is an article which offers a solution to perform measures of performance by leaning on AOP (Aspect Oriented Programmation). Following example offers to use the realisation AspectJ coupled with the tool Open Source JAMON.

Read the continuation of this article

Xebia IT Architects lock France
Defence Colis e - 10/12, avenue of The Ark
92419 Courbevoie Cedex

T l : +33 (0) 1 46 91 76 16
Fax : +33 (0) 1 46 91 88 00
E-mail : info@xebia.fr