Hi There
I am having trouble using getFormula() in the domino java package. Below is the code i am using. It runs ok but always returns
@All
but i know that the database has a replication formula on it, can anyone help me out; point me in a direction, thanks heaps
import lotus.domino.*;
import javax.swing.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
Database db = agentContext.getCurrentDatabase();
Replication replication = db.getReplicationInfo();
if (db.isOpen()) {
ReplicationEntry re = replication.getEntry("-", "-", false);
if (re != null) {
System.out.println(re.getFormula());
}
else
System.out.println("No entry for ");
}
} catch(Exception e) {
e.printStackTrace();
}
}
}