Domino Code Fragment
| Code Name* Comment property | Date* 12/22/2025 | Source (or email address if you prefer)* [email protected] IP address:.108.162.242.36 | |
| Description* This example prints the name and comment of the current agent. | Type* Java | Categories* (Misc) | |
| Implementation: | Required Client: | Server: |
| Limitations: | Comments: | |
public class commentagent extends AgentBase
{
public void NotesMain()
{
try
{
Session s = getSession();
AgentContext ac = s.getAgentContext();
Agent agent = ac.getCurrentAgent();
System.out.println
("Current Agent is " + agent.getName());
System.out.println
("Comment : " + agent.getComment());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}