Solved

where to see the output of a Lotus Notes agent?

Posted on 2011-02-14
3
844 Views
Last Modified: 2013-12-18
I have following simple agent wrriten in java:

import lotus.domino.*;
public class JavaAgent extends AgentBase {
      public void NotesMain() {
      try {
           Session session = getSession();
           AgentContext agentContext = session.getAgentContext();

          // (Your code goes here)
         Database db = agentContext.getCurrentDatabase();
               ACL acl = db.getACL();
               ACLEntry acle = acl.getFirstEntry();
                        do {
                         System.out.println(acle.getName());             
                        } while ((acle = acl.getNextEntry(acle)) != null);
            } catch(Exception e) {
                  e.printStackTrace();
            }
      }
}

When I run this agent from Lotus Notes client, the agent ran and finishes without problem, but I can't see any output from the line System.out.println. Where can I see the output? Thanks.
0
Comment
Question by:dominoPgr
3 Comments
 
LVL 46

Accepted Solution

by:
Sjef Bosman earned 250 total points
ID: 34893185
I assume, if the agent is run on your client PC, that the output can be found in the Java console (Tools/Show Java Debug Console). If the agent runs on the server, you'd have to look in the log.nsf database, the Miscellaneous section.
0
 
LVL 5

Expert Comment

by:Emmanuel Gleizer
ID: 34894522
Btw I suggest you to use the openlog library. This will give you the option to quite in a dedicated DB log look in opentntf.org
0
 

Author Closing Comment

by:dominoPgr
ID: 34900836
Found it in Show Java Debug Console. Thank you!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Domino Smart Upgrade from Release 8.5.3 to 9.0.1 1 1,016
Lotes Notes 8.5.3 std can not open calendar 2 113
Lotus notes email code 2 126
Lotus Notes Database "Invalid NSF Version" 5 2,066
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
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

820 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