BBjServletConfiguration::setConfig (Deprecated)

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

Description

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

Syntax

Return Value

Method

void

setConfig(string config)

Parameters

Variable

Description

config

Specifies the name of the config file.

Return Value

None.

Remarks

This is the full/path/to/config.bbj.

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.