BBjJettyContextConfiguration::removeBBjServlet (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 removes a BBjServlet from a Jetty Context

Syntax

Return Value

Method

void

removeBBjServlet(string name)

Parameters

Variable

Description

name

of the servlet to remove

Return Value

None.

Remarks

None.

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()

rem '-- Remove the servlet from the root context
root!.removeBBjServlet("MyServlet")

config!.saveConfig()

See Also

BBjAPI

BBjJettyContextConfiguration