vendredi 16 octobre 2015

How to disable the shared cache?

EclipseLink/FAQ/How to disable the shared cache?

By default EclipseLink enables a shared object cache to cache objects read from the database to avoid repeated database access. If the database is changed directly through JDBC, or by another application or server, the objects in the shared cache will be stale.
EclipseLink offers several mechanism to deal with stale data including:
  • Refreshing
  • Invalidation
  • Optimistic locking
  • Cache coordination
The shared cache can also be disabled. This can be done using the EclipseLink persistence unit property:
<property name="eclipselink.cache.shared.default" value="false"/>Or the JPA 2.0 persistence unit element:
<shared-cache-mode>NONE</shared-cache-mode>
Or can be selectively enabled/disabled using the @Cache annotation:
@Entity@Cache(isolation=ISOLATED)public class Employee { ...
}Or the JPA 2.0 @Cacheable annotation:
@Entity@Cacheable(false)public class Employee { ...
}Do not disable the cache by setting the CacheType to None, this can cause object identity issues.
See also, Caching Example and the Caching section of the EclipseLink JPA User Guide for more information on caching.

La communauté des auditeurs SMB214 2015-2016

Group google : https://groups.google.com/a/cnamliban.org/forum/#!forum/smb214-2016
GitHub : https://github.com/ISSAE/smb214-2016


La page de la communautés : http://reseaux-systemes.cofares.net/

Présentiel Mardi / Jeudi de 17h45 à 21h

jeudi 2 juillet 2015

Install MangoDB on UBUNTU

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

Tutorial to install MongoDB on LTS Ubuntu Linux systems from .deb packages. While Ubuntu includes its own MongoDB packages, the official MongoDB packages are generally more up-to-date.
Platform Support
MongoDB only provides packages for 64-bit long-term support Ubuntu releases. Currently, this means 12.04 LTS (Precise Pangolin) and 14.04 LTS (Trusty Tahr). While the packages may work with other Ubuntu releases, this is not a supported configuration.

mardi 16 juin 2015

NoSQL NoJPA just jaxb, xpath, xslt

In some cases the usage of a Data base is over the needs. Sometimes a persitence on disk as (key, value)  concept is suffisant. The key is the path on disk and the value is the file result of marshaling the object.

Let take a simple CRUD example and show how to make the job done.

dimanche 17 mai 2015

Liste mise à jour des projets libres dans le cadre de l'enseignement au Cnam Liban

Projets GitHub publique (Java et Linux)

  • nsy107 Exemple programmation répartis en Java 
  • smb215-15 ToT (Track of Things) Le projet des auditeurs SMB215 en 2015
  • rsx20x  Support et exemples pour le cours RSX20x Canam Liban


vendredi 15 mai 2015

Logiciel suivi du patrimoine (Les possessions d'une entité)

Dans le cadre du cours SMB215 (année 2015) les auditeurs développent un logiciel de suivi et localisation des biens d'une entitée (ToT : Track of Things) (SdT : Suivi de Truc)

Les biens: ensemble des objets réels ou immatériels possédés.
L'entité: Entreprise, association, collectivité, groupe, etc...

Le développement au moyen de technologie java est réalisé en mode communautaire style projet "Open Source". Le logiciel sera sur github (smb215-15)

Vous trouverez plus d'informations en suivant les liens suivant

Les premières idées du projet :  http://libresoftware.cofares.net/projets-par-l-open-source-lebanese-movement/gstockr

Liens externes utiles

Autres dépôts

jeudi 11 décembre 2014

Code Camp : Idée de projets de réalisation en J2ee

Idée 1: Gestion des dépenses familiales

connectabilité simple

Fonctionnalités initiales: (idées de départ)

  • L'application permet de saisir les dépense par catégories. 
  • Le responsable de la famille (ou l'utilisateur principal) définie les catégories et les utilisateurs.
  • Les utilisateurs saisissent les dépenses.
  • L'application permet de réaliser des états par catégories de dépense ou des états consolidé de dépenses.

Idée 2: