public synchronized void get_response() throws org.omg.CORBA.WrongTransaction { while (gotResponse == false) { // release the lock. wait to be notified by the thread that is // doing the asynchronous invocation. try { wait(); } catch (InterruptedException e) {} } }
@Override public Request get_next_response() throws WrongTransaction { return null; }
/** * Get the next instance with a response being received. If all currently sent * responses not yet processed, this method pauses till at least one of them * is complete. If there are no requests currently sent, the method pauses * till some request is submitted and the response is received. This strategy * is identical to the one accepted by Suns 1.4 ORB implementation. * * The returned response is removed from the list of the currently submitted * responses and is never returned again. * * @return the previously sent request that now contains the received * response. * * @throws WrongTransaction If the method was called from the transaction * scope different than the one, used to send the request. The exception can * be raised only if the request is implicitly associated with some particular * transaction. */ public Request get_next_response() throws org.omg.CORBA.WrongTransaction { return asynchron.get_next_response(); }