ページの先頭行へ戻る
Interstage Application Server アプリケーション作成ガイド(CORBAサービス編)

E.2.6 セション継続用のオブジェクトリファレンスのバインド関係登録削除

  クライアントからセション破棄用のメソッドの要求が来た場合、オブジェクトリファレンスのバインド関係の登録削除関数を発行します。

  void
  ODsample_ssnintf_impl::destroyssn(
      CORBA::Environment  &arg_env )
      throw ( CORBA::Exception )
  {
    CORBA::Environment       local_env; // 例外情報

    // オブジェクトリファレンスのバインド関係の登録削除
    orb->unbind_object( this, local_env );

    return;
  }