demonstrate how to call an asynchronous ejb and continue local work meanwhile . after finishing local work wait for the result of the server call . remember that the call of future.get will have a remote roundtrip to the server . concode_field_sep Logger LOGGER concode_elem_sep AsynchronousAccess accessBean concode_elem_sep ParallelAccess parallelBean concode_field_sep void callAnEJBwithAsyncAccess concode_elem_sep void getResultAsync concode_elem_sep void fireAndForget concode_elem_sep void callAsyncWithFailure concode_elem_sep void waitForAnotherAsyncResult2 concode_elem_sep void main
void function ( ) { Future < String > loc0 = accessBean . longerRunning ( 1500 ) ; LOGGER . info ( "srini_string" + loc0 . get ( ) ) ; }