BBjJettyServerConfiguration::setAdminPassword

Description

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

Syntax

Return Value

Method

void

setAdminPassword(string password)

Parameters

Variable

Description

password

Specifies the password for the admin user.

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.