Remote session call from com.ibm.notes.java.api package

From an Eclipse application running within Notes 8, I try to open a remote session for a different user using “NotesFactory.createSession(hostname, user,password)”.I always get the following error:

“org.omg.CORBA.COMM_FAILURE: java.net.ConnectException: Connection refused: connect Host: 127.0.0.1 Port: 63148 vmcid: 0x0 minor code: 1”

For me, it seems that Notes tries to open a local session instead of accessing the remote server.

Trying to get the IOR via “NotesFactory.getIOR(hostname)” fails too. But, opening a local session via “NotesFactory.createSessionWithFullAccess()” and then accessing the remote server on db level, works fine.

Does the Notes API, provided with the com.ibm.notes.java.api package, allow creating remote sessions for a user that is not the current client user?

BTW: Adding the to etc/hosts doesn’t help neither specifying the host’s IP for …

Subject: Solution found

After having the same issue using NCSO.jar instead, I checked the server document and found out that the Internet host name differed from the machine’s host name. Sorry for posting this beginner’s mistake :wink: