Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Java connectivity to Domino on Solaris

Posted on 2002-07-23
5
Medium Priority
?
379 Views
Last Modified: 2013-12-18
Dear sirs,

  could you advise me, please, how to connect from a Java code into a Lotus Domino Server on SUN SOLARIS OS (and access its databases, views, document, etc), that runs primarily on the local machine?

Thanks a lot for any reply!!

~adams
0
Comment
Question by:adamsfamily
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:zvonko
ID: 7171804
There is a standard example in Designer help for doing this:
 7.     This example demonstrates an application that makes remote (IIOP) calls. The example requires the user to enter the name of the host Domino server and optionally a user name and password. If a user name and password is not supplied, the server must allow anonymous access.
import lotus.domino.*;
public class platform6 implements Runnable
{
  String host=null, user="", pwd="";
  public static void main(String argv[])
    {
      if(argv.length<1)
      {
        System.out.println(
           "Need to supply Domino server name");
        return;
      }
      platform6 t = new platform6(argv);
      Thread nt = new Thread((Runnable)t);
      nt.start();
    }
  public platform6(String argv[])
  {
    host = argv[0];
    if(argv.length >= 2) user = argv[1];
    if(argv.length >= 3) pwd = argv[2];
  }
  public void run()
    {
    try
      {
        Session s = NotesFactory.createSession(
                    host, user, pwd);
        String p = s.getPlatform();
        System.out.println("Platform = " + p);
      }
    catch (Exception e)
      {
        e.printStackTrace();
      }
    }
}

If you have a Notes client installaded on this machine where this Java Application has to run then it is even more simple.

Good luck,
zvonko


0
 

Author Comment

by:adamsfamily
ID: 7175199
zvonko, thanks for your very fast response :-) and sorry for my late answer.

in this moment, i have no ability to test it on a solaris installation, but if you say that it should work also on the sun's operating system, then i agree with you.

could you please tell me, what package can i download (and where !) to be able to import lotus.domino.* ?

thanks again!

regards
~adams
0
 
LVL 10

Accepted Solution

by:
zvonko earned 640 total points
ID: 7175384
The only usable java version for Notes so far is 1.1.8

You can get it here:
http://java.sun.com/products/jdk/1.1/download-jdk-solaris.html

The imported lotus.domino.* is fetched from Notes.jar found under:
/opt/lotus/notes/5080/sunspa/Notes.jar

Good luck,
zvonko

0
 

Author Comment

by:adamsfamily
ID: 7176365
Thanks a lot znovno!!

~adams
0
 
LVL 10

Expert Comment

by:zvonko
ID: 7176521
Thank you :)

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question