PDA

View Full Version : 没有domino服务器,只有client,一样可以操作其数据库么?


yuanhang1
20-08-08, 05:57 PM
请问:我的机上只装有domino client,没有服务器,而且也没法连接服务器,那么我还一样可以用 java 操作domino数据库么?万分感谢各位先了!!!!!

myth12
20-08-08, 08:20 PM
只能操作本地地數據庫

yuanhang1
21-08-08, 05:05 AM
多谢 myth12班主!

我现在的问题是:例子程序调通了,但却还是始终无法访问数据库!!!

import lotus.domino.*;

public class NotesTest {

public static void main(String[] args) {

try {
NotesThread.sinitThread();
Session s = NotesFactory.createSession();
if (!s.isValid()) System.out.println("session not valid\n");
Database db = s.getDatabase("","C:\\Lotus\\Notes\\Data\\test3.nsf");
if (!db.isOpen()) db.open();

String dbname = db.getTitle();
System.out.println("dbname:" + dbname);
} catch(Exception e) {
e.printStackTrace();
}
finally {
NotesThread.stermThread();
}
}
}

我输入密码之后,什么反应都没有!!!!调不到数据库,程序还不停,除非手动停!晕,这是怎么回事啊????我就是调不到数据库!!还是我的数据库有问题????郁闷,请各位帮忙啊,谢谢。。。。

chinayxd
20-11-08, 10:46 PM
只能在本地库中附加代码!如果要运行程序的话服务端必须启动。