Solved

Java connectivity to Domino on Solaris

Posted on 2002-07-23
5
373 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 160 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

820 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