SlideShare une entreprise Scribd logo
1  sur  13
IME – Informatique Mobile d’Entreprise PointBase UniSync Sébastien Letélié Ingénieur d’études et de développement [email_address]
Plan de la présentation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PointBase ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
PointBase UniSync ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Comment ça marche ? ,[object Object],[object Object],SyncDataSource Serveur SyncDataSource Client ,[object Object],[object Object]
Publication ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Souscription ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Détection et résolution de conflits (1)  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Détection et résolution de conflits (2) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Exemples (1) ,[object Object],private static final String m_CDriver = "com.pointbase.jdbc.jdbcUniversalDriver"; private static final String m_CURL = "jdbc:pointbase://localhost:9092/hubdb"; private static final String m_CUser = "pbpublic"; private static final String m_CPassword = "pbpublic"; private static final String PUB  = "Pub1"; private static final String HUBNAME  = "Hub1"; public void configureHub2() { try { // First get an instance of the SyncManager  SyncManager l_SyncManager = SyncManager.getInstance(m_CURL, m_CDriver, m_CUser, m_CPassword); // Check if the Hub already exists Hub l_Hub = l_SyncManager.getHub(HUBNAME); if(l_Hub == null) { // Create the Hub from the SyncManager l_Hub = l_SyncManager.createHub(HUBNAME); l_Hub.startServer(); } // Publish specified tables String[] tableNames = new String[]{"SCOTT.TABLE1", "SCOTT.TABLE2"}; // Check if the Publication already exists Publication l_Pub = l_Hub.getPublication(PUB); if(l_Pub == null) { // Create a new Publication l_Pub = l_Hub.newPublication(PUB, SyncDataSource.DEFAULT, tableNames); // Save the Publication l_Hub.publish(l_Pub); }  } catch(Exception e) { // Handle the exception here } }
Exemples (2) ,[object Object],private static final String m_SDriver = "com.pointbase.jdbc.jdbcUniversalDriver"; private static final String m_SURL = "jdbc:pointbase://localhost:9093/spokedb"; private static final String m_SUser = "pbpublic"; private static final String m_SPassword = "pbpublic"; private static final String PUB  = "Pub1"; private static final String SUB  = "Sub1"; private static final String SPOKENAME = "Spoke1"; private static final String m_HubURL = "tcp://localhost:8123"; public void configureSpoke1() { try { // First get an instance of the SyncManager  SyncManager l_SyncManager = SyncManager.getInstance(m_SURL, m_SDriver, m_SUser, m_SPassword); // Check if the Spoke already exists Spoke l_Spoke = l_SyncManager.getSpoke(SPOKENAME); if(l_Spoke == null) { // Create the Spoke from the SyncManager l_Spoke = l_SyncManager.createSpoke(SPOKENAME); // Save the URL to connect to the hub l_Spoke.saveHubURL(m_HubURL); } // Subscribe to Publication PUB. This should get all the SyncTables from the Publication // Check if the Subscription already exists Subscription l_Sub = l_Spoke.getSubscription(SUB); if(l_Sub == null) { SyncDataSource l_DataSource = l_SyncManager.getSyncDataSource(SyncDataSource.DEFAULT); // Get all the tablenames from schema "SCOTT" String[] tableNames = l_DataSource.getAllTableNames("SCOTT"); // Create a new Subscription l_Sub = l_Spoke.newSubscription(SUB, SyncDataSource.DEFAULT, PUB, tableNames); // Save the Subscription l_Spoke.subscribe(l_Sub); } // Get the full snapshot from the Hub l_Spoke.getSnapshot(SUB); } catch(Exception e) { // Handle the exception here } }
Conclusion ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Contacts ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Contenu connexe

En vedette

En vedette (7)

Informatique Mobile d'Entreprise
Informatique Mobile d'EntrepriseInformatique Mobile d'Entreprise
Informatique Mobile d'Entreprise
 
E-Health Projects In Emergency
E-Health Projects In EmergencyE-Health Projects In Emergency
E-Health Projects In Emergency
 
Services Web Asynchrones
Services Web AsynchronesServices Web Asynchrones
Services Web Asynchrones
 
Projet Domurpic
Projet DomurpicProjet Domurpic
Projet Domurpic
 
Informatique Mobile 3eme génération
Informatique Mobile 3eme générationInformatique Mobile 3eme génération
Informatique Mobile 3eme génération
 
Oracle bpm-suite-11g-overview-slide
Oracle bpm-suite-11g-overview-slideOracle bpm-suite-11g-overview-slide
Oracle bpm-suite-11g-overview-slide
 
Les 10 tendances du digital en santé
Les 10 tendances du digital en santéLes 10 tendances du digital en santé
Les 10 tendances du digital en santé
 

Similaire à Point Base Uni Sync

Similaire à Point Base Uni Sync (20)

Activity
ActivityActivity
Activity
 
Php & My Sql
Php & My SqlPhp & My Sql
Php & My Sql
 
Php & My Sql
Php & My SqlPhp & My Sql
Php & My Sql
 
Php1
Php1Php1
Php1
 
Rapport tp3 j2ee
Rapport tp3 j2eeRapport tp3 j2ee
Rapport tp3 j2ee
 
Tuto bada
Tuto badaTuto bada
Tuto bada
 
Atelier18
Atelier18 Atelier18
Atelier18
 
3-android.pdf
3-android.pdf3-android.pdf
3-android.pdf
 
JBoss clustering et tuning (lab 1/3)
JBoss clustering et tuning (lab 1/3)JBoss clustering et tuning (lab 1/3)
JBoss clustering et tuning (lab 1/3)
 
Resume SGBDR
Resume SGBDRResume SGBDR
Resume SGBDR
 
Atelier gwt
Atelier gwtAtelier gwt
Atelier gwt
 
eServices-Tp2: bpel
eServices-Tp2: bpeleServices-Tp2: bpel
eServices-Tp2: bpel
 
C# 7 - Nouveautés
C# 7 - NouveautésC# 7 - Nouveautés
C# 7 - Nouveautés
 
Projet base de donnée
Projet base de donnée Projet base de donnée
Projet base de donnée
 
Powershell
PowershellPowershell
Powershell
 
"Un module Prestashop, comment ca marche?"
"Un module Prestashop, comment ca marche?""Un module Prestashop, comment ca marche?"
"Un module Prestashop, comment ca marche?"
 
Subversion - Utilisation et bonnes pratiques
Subversion - Utilisation et bonnes pratiquesSubversion - Utilisation et bonnes pratiques
Subversion - Utilisation et bonnes pratiques
 
atam guide de developpement v1.3
atam guide de developpement v1.3atam guide de developpement v1.3
atam guide de developpement v1.3
 
Stream processing avec Apache Pulsar
Stream processing avec Apache PulsarStream processing avec Apache Pulsar
Stream processing avec Apache Pulsar
 
Presentation Symfony2
Presentation Symfony2Presentation Symfony2
Presentation Symfony2
 

Point Base Uni Sync

  • 1. IME – Informatique Mobile d’Entreprise PointBase UniSync Sébastien Letélié Ingénieur d’études et de développement [email_address]
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.