BBjAdmin::getServletRegistry (Deprecated)

BBjServlets are deprecated for BBj 21.00 and higher, and have been replaced by BBxServlets.

Description

In BBj 12.00 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.