setRelyOnExistingSession
setRelyOnExistingSession(
relyOnExistingSession
)
setRelyOnExistingSession
메소드는
startSession
명령이 기존 세션을 사용하는지 여부를 정의하는 부울을 정의합니다.
true
이면,
executeBatch
에 대한 세션 ID가 기존 세션 ID와 일치해야 합니다.
false
이면,
executeBatch
메소드와 함께 새 세션 ID를 제공해야 합니다.
relyOnExistingSession
- 부울(
true
또는
false
).
리턴값
없음.
예제
다음 예제는
startSession
을 호출하는
executeBatch
메소드에서 발췌한 것입니다.
boolean relyOnExistingSession=false;
. . .
Command startSessionCommand = new CommandImpl();
startSessionCommand.setRelyOnExistingSession(relyOnExistingSession);
Copyright IBM Corporation 2012. All Rights Reserved.