Home > Ask the Domino Experts > Web Development and Downloads Questions & Answers > Accessing a Domino server using a Java-called URL
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Accessing a Domino server using a Java-called URL

Jens Bruntt EXPERT RESPONSE FROM: Jens Bruntt

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 15 September 2004
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.



Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Web Development and Downloads
Programmatically copy and hide attachments in Lotus Notes rich-text fields
Programmatically edit a rich-text field table from within the Lotus Notes client
Troubleshooting Lotus Notes Domino tabbed table problems
Verify Lotus Notes user access to Web pages
Can LotusScript agent display search results using specific view?
Creating Word doc from form works in Notes 5.0.2 but not 5.0.11
XML vs. JavaScript to fill in dropdown on form
Debugging Web agents
Configure an IM hot spot on Web page
Can I use PHP to change tables in MySQL DB running off Domino?

Lotus Notes Domino Access, Permissions and Authentication
Display Lotus Notes user group membership details in a tree view
How DirLint verifies data in Lotus Notes Domino 8 directories
Fix and update Lotus Notes documents with limited access
Lotus Notes access error: 'database is not opened yet'
Formula language button manages Deny Access list searches
Update the ACL from the Roles view with LotusScript
Secure Lotus Notes 8 with the Internet password lockout feature
Find a Lotus Notes user within NAB Deny Access groups
Move a Lotus Domino server to a new certifier without a reinstall
Troubleshoot Lotus Notes Out of Office (OOO) agent error messages

Java for Lotus Notes Domino
Top 10 Lotus Notes/Domino coding and development tips of 2008
Java code inserts data from Notes documents into a SQL table
Java code shortens strings in a SQL table
How to execute a stored procedure in Lotus Notes Domino using Java
Top 10 Lotus Notes Domino programming and development tips of 2007
How to return an HTML representation of a Lotus Notes rich-text field
Shrink Lotus Notes databases with many attachments
Converting Lotus Notes Domino Web pages to PDF files with a Java agent
Developing Eclipse plug-ins for Lotus Notes and Domino -- 7 tips in 7 minutes
A bevy of Notes/Domino development tips

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


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.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts