Menu

can'nt open remote databases

2007-06-28
2013-06-03
  • Nobody/Anonymous

    hello

    i want to open the remote database and send mail to othrt one.
    the server can'nt open the DIIOP,and i see a post.

    http://sourceforge.net/forum/forum.php?thread_id=1725656&forum_id=542947

    Another option to access remote databases, is thru the Notes Client. In this case,
    you need the Notes.jar in your classpath and no DIIOP must be configured:

    DSession session = factory.getSession();
    DDatabase database = session.getDatabase("testserver", "names.nsf");

    so i try the code
    ------------ my code ------------
    DNotesFactory factory = DNotesFactory.getInstance();
    DSession session = factory.getSession();

    System.out.println("open session success");

    DDatabase database = session.getDatabase(r.getString("notes-server"),r.getString("mail-database"));

    DDocument doc = database.createDocument();
    doc.replaceItemValue("Subject", "test by dave");
    doc.replaceItemValue("Body", "<font color='red'>Hello world!</font>");
    doc.send(r.getString("mail-to"));

    ------------ ------------

    log is
    open session success
    isOnServer = false

    error is
    user can'nt find the database myserver||mail/admin.nsf

    but i login in client and see the database . the file is exist.

    can anyone help me.?

     
    • Kurt Riede

      Kurt Riede - 2007-06-29

      Have you checked that the user-ID that connects to Lotus Notes has access to that mail database? At least reader-rights are needed.

       
    • Nobody/Anonymous

      DSession session = factory.getSession();

      System.out.println("open session success");
      System.out.println(" isOnServer " + session.isOnServer());
      System.out.println(" userName " + session.getUserName());
      System.out.println(" mailDatabaseName " + session.getMailDatabaseName());

      LOG IS
      open session success
      isOnServer  false
      userName
      mailDatabaseName  mail\wadmin.nsf

       

Log in to post a comment.

MongoDB Logo MongoDB