When we first implemented the Domino agent call to the Domino servlet, we encountered a problem. The Domino agent called the Domino servlet and made the connection, and all seemed fine. But we realized that the connection never totally completed. After we added a statement in the Domino agent to print out the response from the servlet, it worked correctly. This is the example code, with the bolded text being what we added:
URL url = new URL ("yourServletURL");
HttpURLConnection httpConn = (HttpURLConnection)url.openConnection();
// Opening the connection to URL
httpConn.setDoOutput(true); // Can read from the connection
httpConn.setRequestMethod("GET");
httpConn.connect();
System.out.println("Response: " + httpConn.getResponseCode() + " " + httpConn.getResponseMessage());
httpConn.disconnect();
Dan Boyum is a Software Engineer on the Business Solution Test team located at the Rochester, Minnesota, laboratory. He has 2.5 years of experience in the software testing field. His areas of expertise include Lotus Domino and Windows servers on iSeries. Dan can be reached at
Marilyn Dukart is an Advisory Software Engineer on the Business Solution Test team located at the Rochester, Minnesota, laboratory. She has over 15 years of experience in the software testing field. Her areas of expertise include Lotus Domino and WebSphere. Marilyn can be reached at
LATEST COMMENTS
MC Press Online