BBjspPipelineConfig::createStage (Deprecated)

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

Description

In BBj 17.0 and higher, this method creates and returns a new BBjspPipelineStageConfig

Syntax

Return Value

Method

BBjspPipelineStageConfig

createStage(string name, string source, string className)

Parameters

Variable

Description

className

the name of the BBj program class

name

the name of the stage

source

the source file containing the BBj program class

Return Value

the BBjspPipelineStageConfig

Remarks

None.

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!
declare BBjspPipelineConfig pipelineConfig!
declare BBjspPipelineStageConfig stage1Config!

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")
stage1Config! = pipelineConfig!.create("Stage1","MyPipeline.bbj","Stage1")

pipelineConfig!.save()

See Also

BBJSP

BBjspPipelineStage

BBjspPipelineStageConfig