Examples: CommonUserName property (Session - Java)

The following agent prints the common user name.

import lotus.domino.*;
public class JavaAgent extends AgentBase {
  public void NotesMain() {    try {
      Session session = getSession();
      AgentContext agentContext = session.getAgentContext();
      // (Your code goes here) 
      String u = session.getCommonUserName();
      System.out.println("Common user name = " + u);
    } catch(Exception e) {
      e.printStackTrace();
    }
  }
}