535
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
Session s = NotesFactory.createSession("127.0.0.1:63148","admin","password");
System.out.println(s.getUserName());
lotus.domino.Database db = null;
db = s.getDatabase(s.getServerName(), "bkzy2006.nsf");
}catch(Exception e){
e.printStackTrace();
}
}
import lotus.domino.*;
public class JavaAgent extends AgentBase {
public void NotesMain() {
try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();
// (Your code goes here)
} catch(Exception e) {
e.printStackTrace();
}
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
Session s;
System.out.println("-DIIOP-");
}catch(Exception e){
e.printStackTrace();
}
}
public static void main(String[] args) {
String host = "hostname:63148";
try {
String ior=NotesFactory.getIOR(host); //获得IOR(通过DIIOP必须的)
Session session = NotesFactory.createSessionWithIOR(ior,user,pass);
Database db=s.getDatabase("", "names.nsf");
//
} catch (Exception e) {
e.printStackTrace();
}
}