BBjAppServer::getApplication

Description

In BBj 12.0 and higher, returns a published application with the given name. If no application exists with the given name, this method will throw an exception.

Syntax

Return Value

Method

BBjApplication

getApplication(string name)

Parameters

Variable

Description

name

The name of the published application.

Return Value

Returns the published application, if it exists.

Remarks

None.

Example

rem ' BBjAppServer::getApplication

admin! = bbjapi().getAdmin("admin","admin123")
appServer! = admin!.getWebAppServer()
vector! = appServer!.getAllAppNames()
if (vector!.size()) then
    for i = 0 to vector!.size() - 1
        appName$ = vector!.get(i)
        app! = appServer!.getApplication(appName$)
        print appName$," ",app!.getProgramName()
    next i
endif

See Also

BBjAPI

BBjAppServer

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