Domino Code Fragment
Code Name* lotus.notes.Agent class | Date* 04/28/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.3.144.187.103 | |
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();
}
}
}