Domino Code Fragment
Code Name* setEnvironmentVar method | Date* 04/29/2024 | Source (or email address if you prefer)* Rlatulippe@romac.com IP address:.18.189.22.136 | |
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();
}
}
}