JAVA/CORBA CLASSES
Examples: setEnvironmentVar method
1. This application sets the value of the $HomeTown environment variable to "Tokyo."
import lotus.domino.*;
class setenvvar extends NotesThread
{
public static void main(String argv[])
{
setenvvar t = new setenvvar();
t.start();
}
public void runNotes()
{
try
{
Session s = NotesFactory.createSession();
s.setEnvironmentVar("HomeTown", "Tokyo",
false);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
2. This application sets the value of the MailServer system environment variable to "Tornado."
import lotus.domino.*;
class setenvvar2 extends NotesThread
{
public static void main(String argv[])
{
setenvvar2 t = new setenvvar2();
t.start();
}
public void runNotes()
{
try
{
Session s = NotesFactory.createSession();
s.setEnvironmentVar("MailServer", "Tornado",
true);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
See Also
setEnvironmentVar method
Glossary
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Glossary