Q
Problem solve Get help with specific problems with your technologies, process and projects.

Accessing a Domino server using a Java-called URL

I'm trying to access an agent on a Domino server using a URL called from some Java code. I need to authenticate with the server first -- also by using a URL called from Java. I'm finding that the two URLs are opened on different sessions, so the agent doesn't think I have authenticated and fails to run properly.

Is there a way that I can authenticate and run the agent in one go, or run both separately but on the same session? I've found loads of info on the Web regarding "java.net.HttpURLConnection," but this only seems to work if I'm calling a servlet on a Web server.

I think that I can point you in the right direction. You need to use something like this:
String Cookie = URLConnection.
GetRequestProperty("DomAuthSessId"); 

This will retrieve a session authentication cookie –- that's after you have authenticated the first time.

Then you will use this:

URLConnection.SetRequestProperty
("DomAuthSessId",Cookie); 

to apply the authentication information on your second session with the Domino server.

Do you have comments on this Ask the Expert question and response? Let us know.

This was last published in October 2004

Dig Deeper on Lotus Notes Domino Access, Permissions and Authentication

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close