Domino Code Fragment
Code Name* setEnvironmentVar method | Date* 06/28/2025 | Source (or email address if you prefer)* [email protected] IP address:.172.69.58.129 | |
Description* 2. This script sets the value of the MailServer system environment variable to "Tornado." | Type* Java | Categories* (Misc) |
Implementation: | Required Client: | Server: |
Limitations: | Comments: |
class setenvvar2 extends NotesThread
{
public static void main(String argv[])
{
setenvvar2 t = new setenvvar2();
t.start();
}
public void runNotes()
{
try
{
Session s = Session.newInstance();
s.setEnvironmentVar("MailServer", "Tornado", true);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}