BBjServletRegistry (Deprecated)

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

Description

In BBj 12.00 and higher, the BBjServlet registry allows publishing applications as a BBjServlet. Applications published this way are available through the web server.

Creation

BBjAPI > BBjAdmin > BBjServletRegistry

The BBjServletRegistry object is created through the following BBjAdmin method:

Return Value

Method

BBjServletRegistry

getServletRegistry()

Methods of BBjServletRegistry

Return Value

Method

BBjApplication

publish(string path, BBjAppConfigapplication)

BBjApplication

publish(string  contextName, string path, string path, BBjAppConfig appConfig)

BBjApplication

unpublish(string path)

BBjApplication

unpublish(string contextName, string path)

Remarks

None.

Constants

None.

Example

admin! = bbjapi().getAdmin("admin","admin123")
appServer! = admin!.getWebAppServer()
appConfig! = appServer!.makeEmptyAppConfig()
appConfig!.setProgramName("servlet.bbj")
registry! = admin!.getServletRegistry()
registry!.unpublish("/example",err=*next)
registry!.publish("/example",appConfig!)

See Also

BBjAPI

BBjApplication

BBjServlet

BBj Object Variables

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