EJB 비동기 메소드를 호출하는 클라이언트 코드 개발

이 주제에 있는 샘플 코드를 사용하여 EJB 비동기 메소드를 호출하는 클라이언트 코드를 개발할 수 있습니다.

시작하기 전에

이 태스크는 다음 인터페이스 및 Bean 구현 클래스가 존재한다고 가정합니다.
public interface AcmeRemoteInterface {
   void fireAndForgetMethod ();
   Future<Integer> methodWithResults() throws AcmeException1, AcmeException2;
}
@Stateless
@Remote(AcmeRemoteInterface.class)
@Asynchronous
public class AcmeAsyncBean {
   public void fireAndForgetMethod () {
      // do non-critical work
   }

   public Integer methodWithResults() {
      Integer result;
      // do work, and then return results
      return result;
   }
}

이 태스크 정보

프로시저


주제 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tejb_clientcode
파일 이름:tejb_clientcode.html