Matteo Redaelli

Computer Science OpenSource Linux Africa Volontariato Ambiente Energia solare Mezzi Pubblici Piste ciclabili

Calendario 2009 18 Oct 2008

Filed under: Me — Matteo @ 12:48
Tags: , ,

Alro che calendario Pirelli!! Ecco il Calendario 2009 di Binario per l’Africa con le foto scatatte in Kenia l’agostro scorso.

Here is the African Calendar 2009!

Advertisements
 

Using Apache Camel with Ibatis 8 Oct 2008

Filed under: Me — Matteo @ 21:54
Tags: ,

See newer post at http://www.redaelli.org/matteo/blog/2008/10/08/using-apache-camel-with-ibatis/

This is a quick tutorial about the usage of the very powerful Integration tool Apache Camel with Apache Ibatis.

Many thanks to Apache Camel forums and Claus Ibsen.

REQUIREMENTS

  • I used Java version 1.5.0_16
  • Apache Maven version 2.0.9
  • A database mysql: I used a local db “moodle”, user “moodle”, password “moodle” and a table “mdl_user” [ create table mdl_user ( id int, firstname varchar(30), lastname varchar(30), email varchar(30) ); ]

DOWNLOAD

The full sample project can be download from here!

STEP BY STEP

As suggested by http://activemq.apache.org/camel/creating-a-new-spring-based-camel-route.html

matteo@nowar:~/workspace$ mvn archetype:create \
-DarchetypeGroupId=org.apache.camel \
-DarchetypeArtifactId=camel-router \
-DarchetypeVersion=1.4.0 \
-DgroupId=org.redaelli \
-DartifactId=demo-ibatis

matteo@nowar:~/workspace$ cd demo-ibatis

matteo@nowar:~/workspace$ mvn eclipse:eclipse

matteo@nowar:~/workspace$ mvn install

Create iBatis files

  • src/main/resources/SqlMapConfig.xml
  • src/main/resources/User.xml
  • src/main/java/org/redaelli/User.java

Add the routes and dependences in the files

  • src/main/java/org/redaelli/MyRouteBuilder.java
  • pom.xml (adding dependencies “camel-ibatis” e “mysql jdbc”)

And finally run the demo with

matteo@nowar:~/workspace$ mvn camel:run

 

New Facebook group Binario per l’Africa 2 Oct 2008

Filed under: Me — Matteo @ 20:38
Tags: ,

Please, join the Facebook group!

Unisciti al nuovo gruppo di Facebook di Binario per l’Africa

Please, join the Facebook group!

Unisciti al nuovo gruppo di Facebook di Binario per l’Africa

Please, join the Facebook group!

Unisciti al nuovo gruppo di Facebook di Binario per l’Africa

Please, join the Facebook group!

Unisciti al nuovo gruppo di Facebook di Binario per l’Africa