프로젝트 구조 마이그레이션 중 메소드 요소 병합

J2EE 마이그레이션 마법사를 사용하여 프로젝트 구조를 마이그레이션하는 동안 모든 Bean에 대해 동일한 유형의 메소드 요소(보안 ID, 컨테이너 트랜잭션, 메소드 권한, 액세스 목적, 격리 레벨)가 병합되어 논리적으로 그룹화됩니다.

프로젝트 구조 마이그레이션 전후의 메소드 요소 샘플.

다음은 프로젝트 구조 마이그레이션 전의 배치 디스크립터 편집기 소스 페이지에 있는 메소드 권한 샘플입니다.
		<method-permission>
			<role-name>rol1</role-name>
			<role-name>rol2</role-name>
			<method>
				<ejb-name>TestBean1</ejb-name>
				<method-intf>Home</method-intf>
				<method-name>getEJBMetaData</method-name>
				<method-params>
				</method-params>
			</method>
			<method>
				<ejb-name>TestBean1</ejb-name>
				<method-intf>Home</method-intf>
				<method-name>getHomeHandle</method-name>
				<method-params>
				</method-params>
			</method>
			<method>
				<ejb-name>TestBean2</ejb-name>
				<method-intf>Home</method-intf>
				<method-namae>remove</method-name>
				<method-params>
					<method-param>java.lang.Object</method-param>
				</method-params>
			</method>
			<method>
				<ejb-name>TestBean2</ejb-name>
				<method-intf>Home</method-intf>
				<method-name>remove</method-name>
				<method-params>
					<method-param>javax.ejb.Handle</method-param>
				</method-params>
			</method>
		</method-permission>
		<method-permission>
			<role-name>rol1</role-name>
			<role-name>rol2</role-name>
			<method>
				<ejb-name>TestBean2</ejb-name>
				<method-intf>Remote</method-intf>
				<method-name>isIdentical</method-name>
				<method-params>
					<method-param>javax.ejb.EJBObject</method-param>
				</method-params>
			</method>
		</method-permission>
다음은 프로젝트 구조 마이그레이션 후의 배치 디스크립터 편집기의 소스 페이지에 있는 메소드 권한의 샘플입니다.
		<method-permission>
			<role-name>rol1</role-name>
			<role-name>rol2</role-name>
			<method>
				<ejb-name>TestBean1</ejb-name>
				<method-intf>Home</method-intf>
				<method-name>getEJBMetaData</method-name>
				<method-params>
				</method-params>
			</method>
			<method>
				<ejb-name>TestBean1</ejb-name>
				<method-intf>Home</method-intf>
				<method-name>getHomeHandle</method-name>
				<method-params>
				</method-params>
			</method>
			<method>
				<ejb-name>TestBean2</ejb-name>
				<method-intf>Home</method-intf>
				<method-name>remove</method-name>
				<method-params>
					<method-param>>java.lang.Object</method-param>
				</method-params>
			</method>
			<method>
				<ejb-name>TestBean2</ejb-name>
				<method-intf>Home</method-intf>
				<method-name>remove</method-name>
				<method-params>
					<method-param>javax.ejb.Handle</method-param>
				</method-params>
			</method>
			<method>
				<ejb-name>TestBean2</ejb-name>
				<method-intf>Remote</method-intf>
				<method-name>isIdentical</method-name>
				<method-params>
					<method-param>javax.ejb.EJBObject</method-param>
				</method-params>
			</method>
		</method-permission>
참고: CMP 1.x에서 CMP 2.x로의 Bean 마이그레이션도 J2EE 마이그레이션 마법사의 프로젝트 구조 마이그레이션과 함께 선택될 경우, 액세스 목적, 격리 레벨은 제거되지만 그 외의 모든 것은 마이그레이션 중 병합됩니다. 액세스 목적 및 분리 레벨은 확장 모델에서의 변경사항으로 인해 더 이상 올바르지 않기 때문에 제거됩니다. 새 모델을 사용하면 액세스 목적과 격리 레벨이 둘 다 액세스 목적에 정의되어 있으며 Bean 레벨 액세스 목적 및 메소드 레벨 액세스 목적도 가지고 있습니다. 메소드 레벨 액세스 목적보다는 항상 Bean 레벨 액세스 목적을 사용하는 것이 좋습니다.
주제 유형을 표시하는 아이콘 참조 주제
Information Center의 이용 약관 | 피드백

시간소인 아이콘 마지막 업데이트 날짜: 2014-05-22

파일 이름: rmgmethodelmerge.html