Package Framework.anchored

Examples of Framework.anchored.ServiceInvoker


     * This constructor can store no reference to the original object,
     * but must instead copy over it's necessary attributes.
     */
    public BusinessDBMgrProxy(BusinessDBMgr baseClass) {
        super(new ServiceObjectContext());
        ServiceInvoker serviceInvoker = getInvoker(baseClass);
        if (serviceInvoker == null) {
            throw new UsageException("Cannot create a proxy for an object that has not yet been exported.");
        }
        this.objectName = serviceInvoker.getObjectName();
        // The proxy is being created on the same host as the real object
        //this.hostName = System.getProperty("RMIregistry.host");
        try {
            this.hostName = InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            throw new UsageException("Cannot BIND to RMI object ", e);
        }
        this.port = serviceInvoker.getPort();
    }
View Full Code Here


    }

    public void setIsAnchored(boolean isAnchored) {
        if (isAnchored && invoker == null) {
            // Anchor the object, creating an invoker for it.
            this.invoker = new ServiceInvoker(this);
        }
        else if (!isAnchored && invoker != null) {
            this.invoker = null;
        }
    }
View Full Code Here

     * This constructor can store no reference to the original object,
     * but must instead copy over it's necessary attributes.
     */
    public TopCustomizedDBMgrProxy(TopCustomizedDBMgr baseClass) {
        super((ServiceObjectContext)null);
        ServiceInvoker serviceInvoker = getInvoker(baseClass);
        if (serviceInvoker == null) {
            throw new UsageException("Cannot create a proxy for an object that has not yet been exported.");
        }
        this.objectName = serviceInvoker.getObjectName();
        // The proxy is being created on the same host as the real object
        //this.hostName = System.getProperty("RMIregistry.host");
        try {
            this.hostName = InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            throw new UsageException("Cannot BIND to RMI object ", e);
        }
        this.port = serviceInvoker.getPort();
    }
View Full Code Here

    }

    public void setIsAnchored(boolean isAnchored) {
        if (isAnchored && invoker == null) {
            // Anchor the object, creating an invoker for it.
            this.invoker = new ServiceInvoker(this);
        }
        else if (!isAnchored && invoker != null) {
            this.invoker = null;
        }
    }
View Full Code Here

    }

    public void setIsAnchored(boolean isAnchored) {
        if (isAnchored && invoker == null) {
            // Anchor the object, creating an invoker for it.
            this.invoker = new ServiceInvoker(this);
        }
        else if (!isAnchored && invoker != null) {
            this.invoker = null;
        }
    }
View Full Code Here

     * This constructor can store no reference to the original object,
     * but must instead copy over it's necessary attributes.
     */
    public NotifyProxy(Notify baseClass) {
        super((ServiceObjectContext)null);
        ServiceInvoker serviceInvoker = getInvoker(baseClass);
        if (serviceInvoker == null) {
            throw new UsageException("Cannot create a proxy for an object that has not yet been exported.");
        }
        this.objectName = serviceInvoker.getObjectName();
        // The proxy is being created on the same host as the real object
        //this.hostName = System.getProperty("RMIregistry.host");
        try {
            this.hostName = InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            throw new UsageException("Cannot BIND to RMI object ", e);
        }
        this.port = serviceInvoker.getPort();
    }
View Full Code Here

     * This constructor can store no reference to the original object,
     * but must instead copy over it's necessary attributes.
     */
    public BottomBusinessDBMgrProxy(BottomBusinessDBMgr baseClass) {
        super((ServiceObjectContext)null);
        ServiceInvoker serviceInvoker = getInvoker(baseClass);
        if (serviceInvoker == null) {
            throw new UsageException("Cannot create a proxy for an object that has not yet been exported.");
        }
        this.objectName = serviceInvoker.getObjectName();
        // The proxy is being created on the same host as the real object
        //this.hostName = System.getProperty("RMIregistry.host");
        try {
            this.hostName = InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            throw new UsageException("Cannot BIND to RMI object ", e);
        }
        this.port = serviceInvoker.getPort();
    }
View Full Code Here

    }

    public void setIsAnchored(boolean isAnchored) {
        if (isAnchored && invoker == null) {
            // Anchor the object, creating an invoker for it.
            this.invoker = new ServiceInvoker(this);
        }
        else if (!isAnchored && invoker != null) {
            this.invoker = null;
        }
    }
View Full Code Here

     * This constructor can store no reference to the original object,
     * but must instead copy over it's necessary attributes.
     */
    public ConcurrencyMgrProxy(ConcurrencyMgr baseClass) {
        super(new ServiceObjectContext());
        ServiceInvoker serviceInvoker = getInvoker(baseClass);
        if (serviceInvoker == null) {
            throw new UsageException("Cannot create a proxy for an object that has not yet been exported.");
        }
        this.objectName = serviceInvoker.getObjectName();
        // The proxy is being created on the same host as the real object
        //this.hostName = System.getProperty("RMIregistry.host");
        try {
            this.hostName = InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            throw new UsageException("Cannot BIND to RMI object ", e);
        }
        this.port = serviceInvoker.getPort();
    }
View Full Code Here

     * This constructor can store no reference to the original object,
     * but must instead copy over it's necessary attributes.
     */
    public ConcurrencyMgrProxy(ConcurrencyMgr baseClass) {
        super(new ServiceObjectContext());
        ServiceInvoker serviceInvoker = getInvoker(baseClass);
        if (serviceInvoker == null) {
            throw new UsageException("Cannot create a proxy for an object that has not yet been exported.");
        }
        this.objectName = serviceInvoker.getObjectName();
        // The proxy is being created on the same host as the real object
        //this.hostName = System.getProperty("RMIregistry.host");
        try {
            this.hostName = InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {
            throw new UsageException("Cannot BIND to RMI object ", e);
        }
        this.port = serviceInvoker.getPort();
    }
View Full Code Here

TOP

Related Classes of Framework.anchored.ServiceInvoker

Copyright © 2018 www.massapicom. 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.