Solved

Java connectivity to Domino on Solaris

Posted on 2002-07-23
5
375 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…

626 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