I’m using the CORBA 2.1 toolkit to access Notes DB. I want to disable replication when I start my program and then enable it in the end only when data transfer has been good.Using the following, the code doesn’t work:
Assume replication is enabled in the begining.
Database db= notesSession.getDatabase (notesSession.getServerName(), dbName);
Replication replica=db.getReplicationInfo();
boolean currentState=replica.isDisabled();
replica.setDisabled(true); //now replication should be disabled
replica.save();
System.out.println(“oldstate disabled=” + currentState+" newstate"+replica.isDisabled());
Database anotherDB=notesSession.getDatabase (notesSession.getServerName(), dbName);
System.out.println(“new state disabled=” + anotherDB.getReplicationInfo().isDisabled());
the last newState printout shows that the database replication is still disable=false, so the change was only for the temp. Database object and not persistent. Any idead what’s going? a bug ? A “feature”?
thanks for any help