URGENT: Passing system properties to individual thread processes
Hi:
I'm trying to invoke multiple java Servers from a Controller class to enable starting all the servers in a single JVM. The code is shown below:
public class Controller {
/** Creates new Controller */
public Controller() {
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
(new Thread(new Runnable() {
public void run() {
ChatServerRMI.Server.main(null);
}
})).start();
(new Thread(new Runnable() {
public void run() {
LoginService.LoginServerBaseImpl.main(null);
}
})).start();
}
}
However I want to pass system properties/arguments to each main() call. Can someone please explain me how this can be done.....ur help will be appreciated with D$s!
Thanks in advance.

