I’m writing the Java to execute as a class & will later convert it to a servlet. But it needs to open a Notes Session.I’m trying to figure out how.
Can someone point me to an example?
Thanks,
Collin
I’m writing the Java to execute as a class & will later convert it to a servlet. But it needs to open a Notes Session.I’m trying to figure out how.
Can someone point me to an example?
Thanks,
Collin
Subject: Can I do this with Java?
A small example from a servlet I’ve created. Don’t forget to include notes.jar in your classpath.
import lotus.domino.*;
NotesThread.sinitThread();
try {
Session session = NotesFactory.createSession();
Database db = session.getDatabase(SERVER, DBNAME);
Subject: RE: Can I do this with Java?
The help\help_designer.nsf has a section on JAVA/Corba classes that you should look at.
Also, very important to do the stermThread too!
NotesThread.sinitThread();
try {
Session session = NotesFactory.createSession();
Database db = session.getDatabase(SERVER, DBNAME);
…
}
…
finally {
NotesThread.stermThread();
}
Subject: You may want to check out these courses on using Domino with J2EE apps
There are several ways to access Domino from a servlet and/or a JSP. TLCC has a course that covers this.
Howard