BBjAppConfig::setClasspathName

Description

In BBj 12.0 and higher, this method sets the application classpath.

Syntax

Return Value

Method

void

setClasspathName(string classpathName)

Parameters

Variable

Description

classpathName

The name of a defined classpath in Enterprise Manager.

Return Values

None.

Remarks

None.

Example

rem ' BBjAppConfig::setClasspathName
app$ = "buisample"
admin! = bbjapi().getAdmin("admin","admin123")
env! = admin!.getEnvironment()
jar$ = dsk("")+dir("")+app$+".jar"
classpath! = bbjapi().makeVector()
classpath!.add(jar$)
env!.setClasspath(app$,classpath!)
appServer! = admin!.getWebAppServer()
appConfig! = appServer!.makeEmptyAppConfig()
appConfig!.setClasspathName(app$)
print "setClasspathName: ",appConfig!.getClasspathName()

See Also

BBjAPI

BBjAppConfig

BBjAppConfig::getClasspathName

BBjAppServer

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