BBjAdminEnvironment::getClasspath

Description

In BBj 9.0 and higher, this BBjAdminEnvironment method returns a vector containing the configured classpath elements for the given session-specific classpath name.

Syntax

Return Value

Method

BBjVector

getClasspath(string p_name)

Parameters

Variable

Description

p_name

The name of the classpath to retrieve.

Return Value

Returns the value of the configured classpath named by the name argument.

Remarks

The return value from this method only includes the classpath elements explicitly listed in the given classpath name (the configured classpath). Named session classpaths also include all the user jars from the default session classpath. To obtain this full list (the computed classpath), use BBjAdminEnvironment::getFullClasspath(string).

Passing an invalid or non-existent classpath name will cause an !ERROR=17. Passing the empty string will return the value of the default session classpath, excluding any BBj system jars.

Example

INPUT "Enterprise Manager Admin Login: ", user$
INPUT "Password: ",'EE', passwd$, 'BE'

rem ' Modify files to be reloaded.
rem ' ...
DECLARE BBjAdminEnvironment env!
env! = BBjAPI().getAdmin(user$, passwd$).getEnvironment()
PRINT "Classpath is: " + env!.getClasspath("test").toString()

See Also

BBjAPI

BBjAdminEnvironment

BBjAdminEnvironment::getFullClasspath

BBjAdminEnvironment::reloadClasspath

BBjAdminEnvironment::setClasspath

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