전개 설명자에서, 일괄처리 응용프로그램은 특수한 Stateless 세션 Bean(SLSB)을 선언해야 합니다. 이 Bean은 일괄처리 작업 제어기로 작동하며 일괄처리 응용프로그램에 사용되는 모든 일괄처리 단계 엔터프라이즈 Bean에 대한 로컬 엔터프라이즈 Bean 참조사항을 포함해야 합니다.
이 Bean의 구현은 일괄처리 응용프로그램이 아닌 WebSphere에서 제공됩니다. 일괄처리 응용프로그램의 전개 설명자에서만 선언하면 됩니다. 일괄처리 응용프로그램마다 단 하나의 제어기 Bean만 정의할 수 있습니다. 제어기 Bean에 선언된 자원 참조 및 ejb 참조는 제어기 Bean이 선언된 일괄처리 응용프로그램의 모든 일괄처리 단계 ejbs 및 일괄처리 데이터 스트림에 사용 가능합니다. 예를 들어, 응용프로그램의 일괄처리 데이터 스트림이 WebSphere 데이터 소스에 액세스해야 할 경우, 그 데이터 소스에 대한 자원 참조를 제어기 Bean에 선언할 수 있으므로 일괄처리 데이터 스트림은 java:comp/env 네임 스페이스에서 런타임 시 데이터 소스를 찾을 수 있습니다.
제한사항:
<session id="BatchController> <ejb-name>BatchController</ejb-name> <home>com.ibm.ws.batch.BatchJobControllerHome</home> <remote>com.ibm.ws.batch.BatchJobController</remote> <ejb-class>com.ibm.ws.batch.BatchJobControllerBean</ejb-class> <session-type>Stateless</session-type> <transaction-type>Bean</transaction-type> <ejb-local ref id="EJBLocalRef_1094060718999"> <ejb-ref-name>ejb/step1</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <local-home>com.ibm.websphere.batch.BatchJobStepLocalHomeInterface </local-home> <local>com.ibm.websphere.batch.BatchJobStepLocalInterface </local> <ejb-link>Step1EJB</ejb-link> </ejb-local-ref> <ejb-local-ref id="EJBLocalRef_1094060719009"> <ejb-ref-name>ejb/step2</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <localhome>com.ibm.websphere.batch. BatchJobStepLocalHomeInterface</localhome> <local>com.ibm.websphere.batch. BatchJobStepLocalInterface </local> <ejb-link>Step2EJB</ejb-link> </ejb-local-ref> <resource-ref id="ResourceRef_1117024737807"> <description> </description> <res-ref-name>wm/BatchWorkManager</res-ref-name> <res-type>commonj.work.WorkManager</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> </session>
Related concepts
일괄처리 프로그래밍 모델