However, I obtain this error : java.lang.NoSuchMethodError: org.neo4j.onlinebackup.AbstractResource.<init>(Lorg/neo4j/kernel/impl/ transaction/x aframework/XaDataSource;)V at org .neo4j .onlinebackup .EmbeddedGraphDatabaseResource .<init>(EmbeddedGraphDatabaseResource.java:31) at org.neo4j.onlinebackup.Neo4jBackup.doBackup(Neo4jBackup.java:164) at util.BackupNeo4j.run(BackupNeo4j.java:49)
Le 09-juin-10 à 13:48, Johan Svensson a écrit : > On Wed, Jun 9, 2010 at 1:37 PM, Batistuta Gabriel > <batistutagabrielf...@gmail.com> wrote: >> Thanks. >> >> If I understand the tutorial of neo4j and your expaination, this part >> of code is correct : >> >> //create the original graph >> neo = new EmbeddedGraphDatabase(CONSTANTS.GRAPH_PATH); >> graph = ObjectGraphFactory.instance().get(neo); >> >> for (String datasource : new String[]{"nioneodb", "lucene"}) { >> neo.getConfig().getTxModule().getXaDataSourceManager() >> .getXaDataSource( datasource ).keepLogicalLogs( true ); >> } >> >> //create the backup graph >> EmbeddedGraphDatabase neo = GraphJo4neo.getGraphDatabaseService(); >> EmbeddedGraphDatabase backupGraphDb = new >> EmbeddedGraphDatabase( CONSTANTS.GRAPH_BACKUP_PATH ); >> IndexService backupIndexService = new >> LuceneIndexService( backupGraphDb ); >> Backup backup = new Neo4jBackup( neo, backupGraphDb, >> new ArrayList<String>() >> { >> { >> add( "nioneodb" ); >> add( "lucene" ); >> } >> } ); >> >> >> try { >> backup.enableFileLogger(); >> backup.setLogLevelDebug(); >> backup.doBackup(); >> } catch (IOException e) {} >> >> Basically, this part of code is right, isn'it? >> > > Yes that looks right. > > -Johan > _______________________________________________ > Neo4j mailing list > User@lists.neo4j.org > https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user