package org.mytype.examples.RmiClient; import java.rmi.*; import java.rmi.registry.*; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.net.*; import java.net.UnknownHostException; import javacom.ReceiveMessageInterface; import org.openqa.selenium.WebDriver; public class RmiClient { static public void main(String args[]) throws UnknownHostException { try{ ReceiveMessageInterface driver = DriverFactory.getDriver(); //WebDriver driver = DriverFactory.getDriver(); driver.startup("start"); driver.get("http:\\www.google.com"); //driver.get("http:\\www.yahoo.com"); //Thread.sleep(10000); //driver.close(); } catch(Exception e){ e.printStackTrace(); } } public static Object deserialize(byte[] bytes) throws IOException, ClassNotFoundException { ByteArrayInputStream b = new ByteArrayInputStream(bytes); ObjectInputStream o = new ObjectInputStream(b); return o.readObject(); } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)