BBjAppServer::start

Description

In BBj 12.0 and higher, this method starts the BBjAppServer. Any applications published to the BBjAppServer will be accessible.

Syntax

Return Value

Method

boolean

start()

Parameters

None.

Return Value

Returns a boolean indicating that the BBjAppServer was started (true) or was already running (false).

Remarks

None.

Example

rem ' BBjAppServer::start

admin! = bbjapi().getAdmin("admin","admin123")
appServer! = admin!.getWebAppServer()
print "BBjAppServer.isRunning()? ",
print appServer!.isRunning()
for toggle = 1 to 2
    if (appServer!.isRunning()) then
        print "AppServer!.stop()"
        appServer!.stop()
    else
        print "AppServer!.start()"
        appServer!.start()
    endif
    print "BBjAppServer.isRunning()? ",
    print appServer!.isRunning()
next toggle

See Also

BBjAPI

BBjAppServer

BBjAppServer::stop

BBjAppServer::isRunning

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