Skip to content

Monthly Archives: avril 2005

Posted by admin - 6 avril 2005 - no comments

Le mois d’avril sera pour moi plein de qualités… principalement de la qualité logicielle 🙂 Je dois mettre de côté pour un mois mes projets de moteur de recherche celui…

Posted by admin - 4 avril 2005 - no comments

Quelques news dans le monde des moteurs de recherche : * ULTRALINGUA Quel que soit le pays d’origine et donc la langue d’indexation des photos, l’ensemble des image du site…

Posted by admin - 1 avril 2005 - no comments

Phénomène (+-nouveau) à la mode dans le domaine des moteurs de recherche : les communautés d’intérêt méritait bien un petit article… Tandis que l’on approche des limites de la recherche…

  • 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  (https://www.cygwin.com/ ) - 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 : https://www.ibm.com/support/knowledgecenter/fr/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_dep_configuring_ds.htmljavax.sql.DataSourceCe 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 […]