BBjJettyContextConfiguration::setContextStopProgram


Description

In BBj 15.0 and higher, a BBj program can be executed when the context is destroyed.

This method sets the name of the BBj program to be executed when a context is destroyed

Syntax

Return Value

Method

void

setContextStopProgram(string program)

Parameters

Variable

Description

program

the BBj program to execute

Return Value

None.

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()

rem '== Create the Context Listening programs if not done yet.
if root!.getSessionStartProgram() = null
    root!.setContextStartProgram("/WORK/BBJ_SRC/StartContext.bbj")
    root!.setContextStopProgram("/WORK/BBJ_SRC/StopContext.bbj")
endif
config!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration