BBjspServletConfiguration::setConfig


Description

In BBj 17.0 and higher, this method sets the config.bbx for the BBj process running the BBjspServlet.

Syntax

Return Value

Method

void

setConfig(string config)

Parameters

Variable

Description

config

the condig.bbx file

Return Value

None.

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
declare BBjspServletConfiguration servletConfig!

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()

servletConfig! = root!.getBBjspServlet("/myservlet")

servletConfig!.setConfig("/path/to/config.bbx")

config!.saveConfig()

See Also

BBjspServletConfiguration