Domino Code Fragment
| Code Name* lotus.notes.Agent class | Date* 06/09/2026 | Source (or email address if you prefer)* [email protected] IP address:.104.23.243.67 | |
| Description* 1. This example prints the name of the current agent. | Type* Java | Categories* (Misc) | |
| Implementation: | Required Client: | Server: |
| Limitations: | Comments: | |
public class nameagent 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()) + "\"";
}
catch (Exception e)
{
e.printStackTrace();
}
}
}