BBjAdminEnvironment::getFullClasspath

Description

In BBj 9.0 and higher, this BBjAdminEnvironment method returns a vector containing all the classpath elements that affect a session using the given session specific classpath name.

Syntax

Return Value

Method

BBjVector

getFullClasspath(string p_name)

Parameters

Variable

Description

p_name

The name of the classpath to retrieve.

Return Value

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

Remarks

This method returns a BBjVector that contains both the classpath elements explicitly configured for the given classpath name and the user jars from the default session classpath (the computed classpath). To obtain the explicitly configured list of the classpath elements for a particular classpath name (the configured classpath), use BBjAdminEnvironment::getClasspath(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'
DECLARE BBjAdminEnvironment env!
env! = BBjAPI().getAdmin(user$, passwd$).getEnvironment()
PRINT "Classpath is: " + env!.getFullClasspath("test").toString()

See Also

BBjAPI

BBjAdminEnvironment

BBjAdminEnvironment::getClasspath

BBjAdminEnvironment::reloadClasspath

BBjAdminEnvironment::setClasspath

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