Package workflow.test

Source Code of workflow.test.NamingTest

/*
* Created on 2004-6-19
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package workflow.test;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.net.Socket;
import java.rmi.MarshalledObject;

import org.huihoo.willow.client.ServiceContext;

/**
* @author reic
*
* To change the template for this generated type comment go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
public class NamingTest
{

  public static void main(String[] args) throws Exception, IOException
  {
    Socket socket=new Socket("localhost",2126);
    BufferedInputStream bis = new BufferedInputStream(socket.getInputStream());
    ObjectInputStream in = new ObjectInputStream(bis);
    MarshalledObject stub = (MarshalledObject) in.readObject();
    ServiceContext server = (ServiceContext) stub.get();
   
    System.err.println("server="+server);
    socket.close();
  }
}
TOP

Related Classes of workflow.test.NamingTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.