BBjJettyContextConfiguration::addPipelineConfig (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 17.00 and higher, this method creates a new BBjspPipelineConfig representing a BBjspPipeline that will be registered with the current BBjJettyContext. sample BBjAPI/BBjJettyContextConfiguration/addPipelineConfig.bbj

Syntax

Return Value

Method

BBjspPipelineConfig

addPipelineConfig(string name)

Parameters

Variable

Description

name

the name of the pipeline

Return Value

The BBjspPipelineConfig

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
declare BBjspPipelineConfig pipelineConfig!
declare BBjspPipelineStageConfig start!
declare BBjVector stageNames!
api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()
pipelineConfig! = root!.addPipelineConfig("MyPipeline")
pipelineConfig!.setBBjConfig("/opt/basis/bbj/cfg/config.bbx")
start! = pipelineConfig!.createStage("START","mypipeline.bbj","Start")
pipelineConfig!.save()

See Also

BBjAPI

BBjJettyContextConfiguration

BBjspPipelineConfig