FileDocCategorySizeDatePackage
BaseSession.javaAPI DocExample861Fri Aug 25 09:11:44 BST 2000com.imaginary.lwp

BaseSession

public abstract class BaseSession extends UnicastRemoteObject implements Session

Fields Summary
Constructors Summary
public BaseSession()

        super();
    
Methods Summary
public static SessiongetInstance(Identifier id, java.lang.Class cls)

        String url = System.getProperty(LWPProperties.RMI_URL);
        ObjectServer svr;

        try {
            svr = (ObjectServer)Naming.lookup(url);
            return (Session)svr.startSession(id, cls.getName());
        }
        catch( Exception e ) {
            String msg = e.getMessage();

            if( msg == null ) {
                msg = "";
            }
            e.printStackTrace();
            throw new RemoteException(msg);
        }