Problem with creating a Java session using a non-server id file, with local access to Domino

I have a stand alone Java application that needs to open a .NSF database ‘locally’ and create a new document (attaching some files along the way).The way I am doing this is;

NotesSession s = NotesFactory.createSession();

Registration r = s.createRegistration();

r.switchToID (“/path/to/idfile.id”, “password”);

NotesDatabase db = s.getDatabase(null, “relative/path/to/data/mydb.nsf”);

When I switch to a normal user id who has access to the database, it creates a valid session (s.isValid() returns true) but the session cannot open any databases whatsoever.

If I switch to the server id instead, then it can open the database okay.

Domino and my Java application run on the same AIX box, and the non-server id belongs to an editor group in ACL.

I cannot use the server id to run the application in production environment, and I am not allowed to load DIIOP process on Domino. Can anyone suggest any other way of creating a user (ie.non-server) session using Java, other than using the ‘web id & DIIOP’ approach?

Subject: Problem with creating a Java session using a non-server id file, with local access to Domino

In the Domino Designer help it is documented, that switchToID is only valid in an client environment. It ist not allowed on the server.

Greetings Ralf M Petter

Subject: RE: Problem with creating a Java session using a non-server id file, with local access to Domino

hi hello, just happen to have the same problem, id like to ask if there really a way that i can communicate with domino server without turning on the DIIOP which suspected to be the cause of the server slow down performance. kindly share your knowledge. hope this time you got the answer already thanks alot. by the way no problem on my program its working fine with DIIOP

Subject: RE: Problem with creating a Java session using a non-server id file, with local access to Domino

Does that mean there are no other ways to create a client-id based session on the server, that can access *.nsf files? Do you know of any other ways of creating a user session without loading DIIOP ?

Subject: No

I am sorry but i think there is no way to do what you want, but DIIOP is pretty easy to implement although it is slower then local access.

Greetings

Ralf M Petter