Skip to content

Monthly Archives: juin 2009

Posted by admin - 30 juin 2009 - no comments

Pour les victimes de pirate, où porter plainte ? Si votre email, votre compte facebook ou votre comptes et mots de passe ont été détournés pour vous nuire, vous pouvez…

Posted by admin - 25 juin 2009 - no comments

Quelques qualités à prendre en considération pour le choix d’un appareil photo. – Taille du capteur: influence la résolution– Portée du zoom de l’appareil: 35-200 mm déjà pas mal (25-400…

Posted by admin - 25 juin 2009 - no comments

Le choc du 21 Avril 2002 lors de l’annonce du résultat du 1er tour des présidentielles

Posted by admin - 25 juin 2009 - no comments

Un chouette test pour vous aider à choisir: faire le test

  • Swagger CodeGen: Java Client 21 mai 2019
    The Apache CXF client still knows additional issues comparing to the pure Java Client export proposed by Swagger (e.g. the request QueryParams with a Date type are not correctly supported).A few tips may help using the pure Java client generator:- Comment the maven-surefire-plugin config in pom.xml : it is not working as is- Modify the […]
  • MAterialized view of average - Backup query 14 mai 2019
    SELECT time, value, average, average2 FROM (SELECT  row_number() OVER(ORDER BY time) AS ROWNUM,time ,value,AVG(value) OVER(ORDER BY time ROWS 1 PRECEDING) as average,AVG(value) OVER(ORDER BY time ROWS 2 PRECEDING) as average2from cnl ORDER BY time)  AS cnlWHERE mod(ROWNUM,1)=0 LIMIT 10;CREATE MATERIALIZED VIEW dataset_table_resampled ASSELECT time  AS time, AVG(value) OVER(ORDER BY time ROWS 10 PRECEDING)  AS average10,MIN(value) OVER(ORDER […]
  • Migrating WebApp from GlassFish to TomEE 10 mai 2019
    Some usual requirements:Create a WEB-INF/resources.xml  (see below) for replacing glassfish-resources.xmlUpdate persistence.xml provider:  org.apache.openjpa.persistence.PersistenceProviderImplUpdate persistence.xml provider: remove jdbc  in jta-data-sourceAlso add   jdbcDriver=org.postgresql.Driverpassword=xxxuserName=xxxjdbcUrl=jdbc\:postgresql\://localhost\:5432/xxx
  • OpenAM Kubernetes Deployment Tips 9 mai 2019
    It looks that the Open Source version of OpenAM is significantly less available and document than before. Thefore, one of the missing information is about how to easily deploy the open source version in a Kubernetes cluster.I review only the main critical point for easing your porting to Kubernetes.# Start from a Tomcat Container (you […]
  • EJB - Scheduled Tasks with TimerService or ScheduledThreadPoolExecutor 3 mai 2019
    EJB (3.1) provides a great support of Scheduled Tasks through the use of the Timer Service. That tool sounds great: you provide your schedule providing the interval, and an associated (serializable) object and EE container manages the execution of the scheduled method AND the persistence of timer and associated data.Nevertheless, when you reach higher objectives, […]
  • PostGreSQL: list table size 11 avril 2019
    SELECT nspname || '.' || relname AS "relation",    pg_size_pretty(pg_total_relation_size(C.oid)) AS "total_size"  FROM pg_class C  LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)  WHERE nspname NOT IN ('pg_catalog', 'information_schema')    AND C.relkind 'i'    AND nspname !~ '^pg_toast'  ORDER BY pg_total_relation_size(C.oid) DESC  LIMIT 200;
  • EJB - Unexpected Transaction Rollback 11 avril 2019
    A transaction is rolled back as soon as an exception is not caught. Nevertheless, even when it looks that everything is caught, the transaction roll back issue may happen:NativeQuery is your enemy : a failed query could abort the JTA transaction (container managed transaction) even when catching any exception.Some important tips:@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW) annotation on top of the […]
  • EJB Debugging Container Managed Transaction (JTA) 11 avril 2019
    The Java Transaction API (JTA), one of the Java Enterprise Edition (Java EE) APIs, enables distributed transactions to be done across multiple X/Open XA resources in a Java environment.JPA  provides two mechanisms for transactions. When used in Java EE JPA provides integration with JTA (Java Transaction API). JPA also provides its own EntityTransaction implementation for Java […]
  • Maven-patch-plugin on Windows 11 avril 2019
    In order to make the patch working:- Install cygwin  ( ) - In the package selection, add Patch (not selected by default)- Add the cygwin bin directory to the PATH environment variable- Resign into Windows (leaving the session seems mandatory).It seems that "Patch for Windows" does not work (anymore).
  • JDBC - Les Types de DataSource 8 avril 2019
    Found at : type de source de données correspond au format de base. Elle ne fournit aucune interopérabilité facilitant la mise en pool des connexions et, en tant que ressource à deux phases, elle ne peut pas participer aux transactions impliquant plusieurs ressources.javax.sql.ConnectionPoolDataSourceCe type de source de données se prête à la mise en pool […]