setRelyOnExistingSession

The setRelyOnExistingSession method defines a boolean defining whether the startSession command uses an existing session or not.

setRelyOnExistingSession(relyOnExistingSession)

If true, the session ID for executeBatch must match an existing session ID. If false, you must supply a new session ID with the executeBatch method.

  • relyOnExistingSession-a boolean (true or false).

Return value

None.

Example

The following example is an excerpt from an executeBatch method calling startSession.

boolean relyOnExistingSession=false;
. . .
Command startSessionCommand = new CommandImpl();
startSessionCommand.setRelyOnExistingSession(relyOnExistingSession);