Solved

Java connectivity to Domino on Solaris

Posted on 2002-07-23
5
368 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks a lot znovno!!

~adams
0
 
LVL 10

Expert Comment

by:zvonko
Comment Utility
Thank you :)

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
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…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now