BBjJettyServerConfiguration::setAdminUser

Description

In BBj 17.0 and higher, this method sets the admin user stored in jetty.xml.

Syntax

Return Value

Method

void

setAdminUser(string username)

Parameters

Variable

Description

username

Specifies the admin username.

Return Value

None.

Remarks

The admin user details are required to configure servlets and if they are incorrect then servlet deployments will fail.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjVector contextNames!
declare BBjJettyContextConfiguration context!
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
context! = config!.setAdminUser("admin")
context! = config!.setAdminPassword("admin123")

See Also

BBjAPI

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