BBjServletConfiguration::setProgram (Deprecated)

BBjServlets are deprecated for BBj 21.00 and higher, and have been replaced by BBxServlets.

Description

In BBj 15.00 and higher, this method sets the name of the program file used in executing a BBj Servlet.

Syntax

Return Value

Method

void

setProgram(string program)

Parameters

Variable

Description

program

Specifies the name of the BBj program.

Return Value

None.

Remarks

The program must be locatable within the prefix of the specified config.bbx.

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()
declare BBjServletConfiguration servletConfig!
servletConfig! = cast(BBjServletConfiguration,root!.getServlet("wibble"))
servletConfig!.setConfig("C:/bbj/cfg/config.bbx")
servletConfig!.setProgram("MyServlet.bbj")

See Also

BBjAPI

BBj Servlet

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