Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

domino and java : NotesFactory.createSession not working

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
i'm not the DB admin. so i'm not sure of what is enabled or not.
i've seen in many documentations that there is two ways to get a session : with the host

NotesFactory.createSession(
"myLotusServer",
"mylogin",
"mypass");

or with and IOR

NotesFactory.createSessionWithIOR(...

IOR method is not what i'd like to use. i prefer to simply specify the server + id + pass...

what i know is : IIOP has been enabled, and the id i use if alowed to access it. what i don't know is if there is a way to specify in domino server if the DIIOP will be done with IOR or not.

the problem is that the error i get is : Invalid IOR so that means that it looks for an IOR is it right ? what should i change in order to simply use host authentication ?
i tryed to use the usr id + pass in the brower, i'm correclty authenticated.

i launch the servlet from my local machine. i use visual age to do this.


tell me where i'm wrong,

thanks
Best regards,
Elise, XML learning girl X-)
 
Hi,

If the servlet run on the same server as the domino server then use the createSession with out server ip.

Session sess = NotesFactory.createSession((String)null, USERNAME, PASSWORD );

If it not on the same server then enter the IP or hostname, but remember if the server not using DNS server to lookup hostnames, you have to insert a record in the "hosts" file.

Regards,

Flemming Harms
Cap Gemini Denmark
 
well my servlet is distant, i use IIOP task. something really weird is that yesterday it worked fine, session was created. i kept the classes, and today when i launch it again it doesn't works any more.. no changes has been made... i really don't understand why it's so capricious ...
by the way the server use DNS
any idea ? Best regards,
Elise, XML learning girl X-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top