-->
Affichage des articles dont le libellé est Jalel Hazbri. Afficher tous les articles
Affichage des articles dont le libellé est Jalel Hazbri. Afficher tous les articles

mercredi 19 février 2014

Interview about Tunis Java User Group : Out first meeting


For our first meeting for java and Tunis JUG I made a lot of talks and interviews :

With malisseOnline : 

There was almost a year ago that i interviewed about Java and Tunis JUG with Mohamed Ali Souissi who is a speaker and animator in Mosaique FM and who is interested in IT domain.
Here is the viedo of this interview, it was great and cool for me to discuss about Java a,d TunisJUG.


With Mosaique Fm in hightech  program : 

It was so funny to discuss about Java and Tunis JUG.


Many others sites and blog : 

it was at this time that I discovered that a lot of developers who are interested in Java technology and many sites write articles about our Communuty : 
- sabriboubaker.wordpress.com 
www.largestinfo.net 
- speakouttunisia.com
- ....

Arnaud in Tunis : 

Also after I planned with the god maven maven Arnaud Héritier evening, he speaks of it here
" Bon, peut être pas si loin que ça :-).La semaine du 18 juin je serai au soleil en Tunisie ( pour le travail avec les équipes d’eXo platform évidemment !! ).A cette occasion je devrais être de passage au TnJug (La date exacte n’est pas encore fixée). Si vous avez des idées de sujets que vous voulez que j’aborde n’hésitez pas à m’en parler ci-dessous dans les commentaires et je ferai mon possible pour vous faire une session en adéquation avec vos envies. Vous pouvez retrouver tout mon catalogue de présentations sur slideshare. "
But it did not end because we have a lot of organizational problem.




lundi 16 décembre 2013

NoSQL : Using JSF2 Spring 3 with Couchbase in clever cloud

Introduction :

I only wanted to test couchbase without installing it. After search, i discovered that there are a Paas service offered by Clever-cloud. This PaaS is the first cloud platform that offer a couchbase as service. This article show how configure Couchbase Bucket and how to connect to this service using Spring.

First Step : Creation of the bucket in clever-cloud :

In this step, i will create an account in clever-cloud and sign in to can create an instance.
 

After creation, check your mail and verify that you received an email from clever cloud that contains all informations to connect to your instance, all parameters should be like this : 


db_host = ****************.couchbase.clvrcld.net
db_name = ****************
db_username = ****************
db_password = *******************************

The problem with clever-cloud is that you don't have access to manage your instance, but you can do this with your client.

Second Step : JSF 2 and Spring 3 application :

Here, just you create a jsf web app maven prototype. maven dependencies are as follows:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  <!-- JSF -->
  <dependency>
   <groupId>com.sun.faces</groupId>
   <artifactId>jsf-api</artifactId>
   <version>2.1.13</version>
  </dependency>
  <dependency>
   <groupId>com.sun.faces</groupId>
   <artifactId>jsf-impl</artifactId>
   <version>2.1.13</version>
  </dependency>

  <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>jstl</artifactId>
   <version>1.2</version>
  </dependency>

  <dependency>
   <groupId>javax.servlet</groupId>
   <artifactId>servlet-api</artifactId>
   <version>2.5</version>
  </dependency>

  <dependency>
   <groupId>javax.servlet.jsp</groupId>
   <artifactId>jsp-api</artifactId>
   <version>2.1</version>
  </dependency>

  <!-- EL -->
  <dependency>
   <groupId>org.glassfish.web</groupId>
   <artifactId>el-impl</artifactId>
   <version>2.2</version>
  </dependency>

  <!-- Tomcat 6 need this -->
  <dependency>
   <groupId>com.sun.el</groupId>
   <artifactId>el-ri</artifactId>
   <version>1.0</version>
  </dependency>

To inject Spring beans in jsf managed bean, you can use the dependency injection : JSR 330, to do this just add in your pom the dependency : 

1
2
3
4
5
6
  <!-- JSR-330 -->
  <dependency>
   <groupId>javax.inject</groupId>
   <artifactId>javax.inject</artifactId>
   <version>1</version>
  </dependency>

Now, to add Spring to your project, you can add dependencies in your pom file :


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <!-- Spring framework -->
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-core</artifactId>
   <version>3.1.2.RELEASE</version>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-web</artifactId>
   <version>3.1.2.RELEASE</version>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context</artifactId>
   <version>3.1.2.RELEASE</version>
  </dependency>
  <dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-test</artifactId>
   <version>3.1.2.RELEASE</version>
   <scope>test</scope>
  </dependency>

At this stage, to add record in your data base, you should specify it in JSON format, and if you want to read it you should convert it from JSON to your code source langage, in our case, we should add firt the java couchbase-client and i will use google-gson :


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
  <!-- couchbase -client -->
  <dependency>
   <groupId>couchbase</groupId>
   <artifactId>couchbase-client</artifactId>
   <version>1.1.0</version>
  </dependency>

  <!-- Gson: Java to Json conversion -->
  <dependency>
   <groupId>com.google.code.gson</groupId>
   <artifactId>gson</artifactId>
   <version>2.2.4</version>
   <scope>compile</scope>
  </dependency>

Don't forget to add the couch base repository to your pom : 


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 <repositories>
  <repository>
   <id>couchbase</id>
   <name>Couchbase Repository</name>
   <layout>default</layout>
   <url>http://files.couchbase.com/maven2/</url>
   <snapshots>
    <enabled>false</enabled>
   </snapshots>
  </repository>
 </repositories>

jeudi 26 avril 2012

Présentation Tribulation d'un développeur sur le Cloud par Tugdual Grall


Présentation Java et Java EE: Histoire, Présent et Future par Khaled Ben Driss

L'histoire de Tunis Java User Group

Le 24 Avril 2012 : C'était notre première rencontre dans le cadre d'une nouvelle communauté Java à Tunis, mais la date de création effective était exactement le 04 Novembre 2011, cette communauté l'attendent plusieurs acteurs du monde Java. Ce n'était pas facile, de se lancer dans l'aventure de JUG, mais j'avoue que sans mes co-équipiers j'aurai jamais réussi dans ce projet. Par la naissance de cette communauté, j'ai voulu que tous les Java-Geeks se réunissent afin d'échanger leurs connaissances et leurs retour expériences.

Comme j'ai dit avant, le TunisJUG était un rêve pour moi devenu réalité par l'aide de :
En fait, notre communauté a vu le jour et son startup était le 24 Avril 2012, mais avant tout un mois, j'ai discuté avec l'équipe pour fixer les items d'organisations de la première soirée, Je vais commencer par la première personne qui a rejoint mon idée, c'est Mohamed Chaawa, il était un de mes étudiants les plus brillants dans Java à l'ISG, puis Mohamed Ali Haddad qui est mon collègue de travail et qui s'intéresse à Java, puis Ali Hamdi, au début je connaissais Ali mais après que j'ai tout fixé avec notre premier partenaire, Ali voulait rejoindre l'équipe et j'ai trouvé un Java-Geek (le genre de développeur que j'adore, parce qu'on se discute tout a propos de Java), et enfin  Ramzi Arous voulait nous rejoindre et essayer de nous donner un coup de main dans l'organisation des soirées JUG.

Alors, a ce stade tout est OK pour démarrer, j'ai contacté le directeur d'Exo-Tunisia, M. Oualid Cheker, le manager le plus magnifique, car il a bien entendu ma requête de sponsoring et il a aimé l'idée puis il a décidé de m'aider, ensuite, j'ai contacté M. Khaled Ben Driss le directeur technique d'Oxia Tunisia, au début, il m'a dit Ok sans contrainte et accepté mon invitation pour le startup de TunisJUG

Ensuite M. Oualid Cheker m'a proposé pour la startup le fameux speaker Tugdual Grall, le VP of Product Management at eXo Platform SAS, et ensuite j'ai contacté M. Khaled Ben Driss pour qu'il soit aussi parmi nous pour une première présentation autour de l'histoire, le présent et le futur de Java.