BBjAppServer::stop

Description

In BBj 12.0 and higher, this method stops the BBjAppServer.

Syntax

Return Value

Method

boolean

stop()

Parameters

None.

Return Value

Returns a boolean indicating that the BBjAppServer was stopped (true) or was not running (false).

Remarks

None.

Example

rem ' BBjAppServer::stop

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::start

BBjAppServer::isRunning

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