Package net.jini.iiop

Examples of net.jini.iiop.IiopExporter


    /**
     * This method performs all actions mentioned in class description.
     *
     */
    public void run() throws Exception {
        IiopExporter ie = createIiopExporter();
        TestRemoteObjectWithoutStub trows = new TestRemoteObjectWithoutStub();

        try {
            ie.export(trows);

            // FAIL
            throw new TestException(
                    "Export method invocation with remote object"
                    + " without stub/tie classes does not produce any"
View Full Code Here


    /**
     * This method performs all actions mentioned in class description.
     *
     */
    public void run() throws Exception {
        IiopExporter ie = createIiopExporter();
        TestRemoteObject tro = new TestRemoteObject("TestObject");
        TestRemoteInterface stub = (TestRemoteInterface) ie.export(tro);
        ORB o;

        if ((cType == NOARG_FACTORY) || useNullOrb) {
            // we used no-arg constructor or null orb
            try {
View Full Code Here

                    + "are no remote calls is null as expected.");
        }

        // step 2
        ORB orb = ORB.init(new String[0], null);
        IiopExporter ie = new IiopExporter(orb);
        TestRemoteObject tro = new TestRemoteObject();
        TestRemoteInterface stub = (TestRemoteInterface) ie.export(tro);

        if (stub.checkGetServerContext().booleanValue()) {
            // FAIL
            throw new TestException(
                    "Result of getServerContext invocation when there are "
                    + "no JRMP remote calls in progress but there is a "
                    + "IIOP remote call in progress does not satisfy "
                    + "specification.");
        } else {
            // PASS
            logger.log(Level.FINE,
                    "Result of getServerContext invocation when there "
                    + "are no JRMP remote calls in progress but there is a "
                    + "IIOP remote call in progress satisfies "
                    + "specification.");
        }

        // unexport object
        ie.unexport(true);

        // step 3
        JrmpExporter je = createJrmpExporter();
        tro = new TestRemoteObject();
        stub = (TestRemoteInterface) je.export(tro);
View Full Code Here

TOP

Related Classes of net.jini.iiop.IiopExporter

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.