jboolean JNICALL Java_i2jrt_TAOObject__1non_1existent(JNIEnv *jni, jobject jThis) { CORBA::Object_ptr ptr = recoverTaoObject(jni, jThis); try { return ptr->_non_existent(); } catch (const CORBA::SystemException &se) { throw_java_exception(jni, se); } return 0; }
bool cnoid::isObjectAlive(CORBA::Object_ptr obj) { bool isAlive = false; if(obj && !CORBA::is_nil(obj)){ omniORB::setClientCallTimeout(obj, 150); try { if (!obj->_non_existent()) { isAlive = true; } } catch (const CORBA::TRANSIENT &) { } catch (...) { } omniORB::setClientCallTimeout(obj, 0); } return isAlive; }
extern "C" JNIEXPORT jboolean JNICALL Java_omnijni_ObjectImpl__1non_1existent (JNIEnv *, jclass, jlong ref) { CORBA::Object_ptr object = reinterpret_cast<CORBA::Object_ptr>(ref); return (jboolean)object->_non_existent(); }