BBjJettyContextConfiguration::setWarFile


Description

In BBj 15.0 and higher, this method sets the war file in the BBjJettyContext

Syntax

Return Value

Method

void

setWarFile(string warFile)

Parameters

Variable

Description

warFile

the full /path/to/the/warfile.war

Return Value

None.

Remarks

Specifying a WAR file allows deployment of 3rd party web-applications within the internal Jetty Web Server

Example

declare BBjAPI api!
declare BBjAdmin admin!
declare BBjJettyServerConfiguration config!
declare BBjJettyContextConfiguration root!

api! = BBJAPI()
admin! = api!.getAdmin("admin","admin123")
config! = admin!.getJettyServerConfig()
root! = config!.getRootContextInfo()

root!.setWarFile("/www/warfile.war")

See Also

BBjAPI

BBjJettyContextConfiguration