Java Code Examples for com.sun.corba.se.spi.presentation.rmi.StubAdapter#connect()

The following examples show how to use com.sun.corba.se.spi.presentation.rmi.StubAdapter#connect() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 2
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 3
Source Project: jdk8u60   File: ORBUtility.java    License: GNU General Public License v2.0 6 votes vote down vote up
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 4
Source Project: JDKSourceCode1.8   File: ORBUtility.java    License: MIT License 6 votes vote down vote up
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 5
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 6
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 7
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 8
Source Project: hottub   File: ORBUtility.java    License: GNU General Public License v2.0 6 votes vote down vote up
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 9
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 10
/** Obtains an IOR for the object reference obj, first connecting it to
* the ORB if necessary.
* @return IOR the IOR that represents this objref.  This will
* never be null.
* @exception BAD_OPERATION if the object could not be connected,
* if a connection attempt was needed.
* @exception BAD_PARAM if obj is a local object, or else was
* created by a foreign ORB.
*/
public static IOR connectAndGetIOR( ORB orb, org.omg.CORBA.Object obj )
{
    IOR result ;
    try {
        result = getIOR( obj ) ;
    } catch (BAD_OPERATION bop) {
        if (StubAdapter.isStub(obj)) {
            try {
                StubAdapter.connect( obj, orb ) ;
            } catch (java.rmi.RemoteException exc) {
                throw wrapper.connectingServant( exc ) ;
            }
        } else {
            orb.connect( obj ) ;
        }

        result = getIOR( obj ) ;
    }

    return result ;
}
 
Example 11
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}
 
Example 12
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}
 
Example 13
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}
 
Example 14
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}
 
Example 15
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}
 
Example 16
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}
 
Example 17
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}
 
Example 18
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}
 
Example 19
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}
 
Example 20
/**
 * Connect the Stub to the ORB.
 */
protected final Object resolveObject(Object obj) throws IOException {
    try {
        if (StubAdapter.isStub(obj)) {
            StubAdapter.connect(obj, orb);
        }
    } catch (java.rmi.RemoteException re) {
        IOException ie = new IOException("resolveObject failed");
        ie.initCause(re);
        throw ie;
    }
    return obj;
}