"Code: 
    Runtime r = Runtime.getRuntime(); 
    Process p = r.exec(" java myClass "); 

Works but is awfully slow. Any insights? "

Why not use something like:

String[] args={"a","b"};
com.abc.ClassName.main(args);

instead? Then you don't have to fork off a new process.
/korre

-----Original Message-----
From: Marko Viirelä
To: Orion-Interest
Cc: [EMAIL PROTECTED]
Sent: 2001-01-08 09:17
Subject: threads, initialcontext and login

I have created a small client software which connects to EJB-services
running on Orion, of course.

My program has a GUI "launcher" from which users can start client
objects. These objects use InitialContext to deliver user/password
information 
to EJB-services. 

Everything works fine until user gives wrong username/passwd ...
Now since InitialContext is permanent threre is no way to change it
anymore unless user restarts the program, which is lame.

Code:
    Runtime r = Runtime.getRuntime();
    Process p = r.exec(" java myClass "); 

Works but is awfully slow. Any insights?

-- 
        Marko Viirelä, T&K-harjoittelija
        Sonera Operator Systems
        Email:          [EMAIL PROTECTED]
        Puhelin:        040-5456970

Reply via email to