BBjCommandLineObject::getOriginalClasspathName

Description

In BBj 9.0 and higher, this method returns the classpath name originally passed to the currently running session. Use this method to determine what classpath is currently in use.

Syntax

Return Value

Method

string

getOriginalClasspathName()

Parameters

None.

Return Value

The name originally passed to the -CP parameter of BBj.

Remarks

The return value can be used in conjunction with SCALL, BBjAPI::newBBjSession, or BBjAPI::newSynchBBjSession to produce a new session that has the same classpath name but that has a different setting for the classpath.

Example

rem 'Session was started with 'bbj -CPtest test.bbj'

rem 'get CommandLine Object
myCMD! = BBjAPI().getConfig().getCurrentCommandLineObject()

PRINT myCMD!.getOriginalClasspathName()

See Also

BBjAPI

BBjConfig

BBjCommandLineObject

BBjCommandLineObject::getClasspathName

BBjCommandLineObject::setClasspathName

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.