}
public File build() throws ConfigurationException, DeploymentException
{
File war = null;
WebDeploymentArchive webDeployment = new WebDeploymentArchive(getESBDeploymentName(), getESBWarFileName());
WebModel webModel = webDeployment.getWebModel();
// Set the global security domain and global security method.
// These setting are shared for all http-providers and EBWSs
// in a jboss-esb.xml file.
webModel.setAuthDomain(model.getAuthDomain());
webModel.setAuthMethod(model.getAuthMethod());
// Add the EBWS components...
createWebserviceWars(webDeployment);
// Add the web deployments info to the WebModel...
ModelUtil.updateWebModel(deploymentName, ModelUtil.getListenerGroups(model), webModel);
// Add a sub-deloyment for the web model...
this.servlets = webModel.getServlets();
if(!servlets.isEmpty()) {
// Finalize the webDeployment...
webDeployment.finalizeArchive();
// Now create the web deployment...
war = createGatewayTempDeployment(webDeployment);
}