Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

where to see the output of a Lotus Notes agent?

Posted on 2011-02-14
3
Medium Priority
?
893 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 1000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses
Course of the Month10 days, 18 hours left to enroll

886 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