BBjAdmin::getServletRegistry

Description

In BBj 12.0 and a BBjServletRegistry object which is used to publish and unpublish servlets to the web server.

Syntax

Return Value

Method

BBjServletRegistry

getServletRegistry()

Parameters

None.

Return Value

Returns a BBjServletRegistry object.

Remarks

None.

Example

declare BBjAdmin admin!

declare BBjServletRegistry registry!

declare BBjConfig config!

declare BBjAppConfig application!

 

config! = BBjAPI().getConfig()

application! = config!.makeEmptyAppConfig()

application!.setProgramName("MyServlet.bbj")

 

admin! = BBjAPI().getAdmin("admin", "admin123")

registry! = admin!.getServletRegistry()

 

registry!.publish("MyServlet", application!)

See Also

BBjAPI.