1 25 26 29 package org.objectweb.jonas.jtests.beans.remoterunner; 30 31 import javax.rmi.PortableRemoteObject ; 32 33 import org.objectweb.jonas.jtests.util.JTestCase; 34 35 40 public class RSuite extends JTestCase { 41 42 protected static String REMOTE_RUNNER = "RemoteRunnerHome"; 43 static RemoteRunnerHome home = null; 44 String runnerHomeName = null; 45 46 public RSuite(String name) { 47 super(name); 48 49 } 50 51 52 public void setRunnerHomeName (String rhn) { 53 runnerHomeName = rhn; 54 } 55 56 public String getRunnerHomeName() { 57 return runnerHomeName; 58 } 59 60 public RemoteRunner getRemoteRunner() throws Exception { 61 62 home = (RemoteRunnerHome) PortableRemoteObject.narrow(ictx.lookup(runnerHomeName), 63 RemoteRunnerHome.class); 64 return home.create(); 65 66 } 67 68 69 } 70 | Popular Tags |