hiI want to insert a new outline in bookmarks database using java(eclipse)…I tried following command but its not working.
Same command is working if I try it from domino designer.
import lotus.domino.*;
public class platform3
{
public static void main(String argv[])
{
try
{
NotesThread.sinitThread();
Session s = NotesFactory.createSession();
Database db = s.getDatabase("","bookmark.nsf");
if (db.isOpen()){
Outline outline = db.createOutline("some new outline");
outline.setAlias("new outline");
outline.setComment("initiates something");
outline.save();
}else{
System.out.println("DB not opened");
}
}
catch(Exception e)
{
e.printStackTrace();
}
finally
{
NotesThread.stermThread();
}
}
}
everytime it is giving “DB not opened” although DB is opened and i have given manager access to default.
Can you help?