Solved

Java connectivity to Domino on Solaris

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using Grep to Find a file 8 92
LastLogonTimeStamp Attribute 7 48
need to remove or skip  grub protection password in ubuntu on boot time 2 72
unix in java example 9 64
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

809 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