CORBA replication.setDisabled(true) not working/not persistant

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

Subject: CORBA replication.setDisabled(true) not working/not persistant

Hi

I can confirm that there is a problem with “setDisabled()”.

It did not work for me either when i tested it som e time a go.

regards

Jesper Kiaer

http://www.jezzper.com

Subject: RE: CORBA replication.setDisabled(true) not working/not persistant

thanks Jesper,I asked another expert and he tried a local/remote Agent but he was using LotusScript - my sample code worked for him.

So I think this is specific to the Java/CORBA remote access.