{
// set wsdl location resolver
final PublishLocationAdapter resolver = new PublishLocationAdapterImpl(wsDescriptionsMD);
ejbArchiveMD.setPublishLocationAdapter(resolver);
final WebserviceDescriptionMetaData wsDescriptionMD = ASHelper
.getWebserviceDescriptionMetaData(wsDescriptionsMD);
if (wsDescriptionMD != null)
{
if (!Constants.BC_CONTEXT_MODE && contextRoot == null && !hasContextRoot(ejbArchiveMD))
{
contextRoot = wsDescriptionMD.getWebserviceDescriptionName(); // TCK6 fallback
}
final String configName = wsDescriptionMD.getConfigName();
final String configFile = wsDescriptionMD.getConfigFile();
// set config name
this.log.debug("Setting config name: " + configName);
ejbArchiveMD.setConfigName(wsDescriptionMD.getConfigName());
// set config file
this.log.debug("Setting config file: " + configFile);
ejbArchiveMD.setConfigFile(wsDescriptionMD.getConfigFile());
}
}
ejbArchiveMD.setWebServiceContextRoot(contextRoot);
this.log.debug("Setting context root: " + contextRoot);