|
From: SourceForge.net <no...@so...> - 2007-06-28 09:23:59
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4385173 By: nobody 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.? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=542947 |