BBjJettyContextConfiguration::getContextStartProgram


Description

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

This method gets the name of the BBj program to be executed when a context is initialized.

Syntax

Return Value

Method

String

getContextStartProgram()

Parameters

None.

Return Value

the BBj program to execute

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