30,13 → 30,13 |
import javax.jws.WebParam; |
import javax.jws.WebService; |
|
import lombok.extern.slf4j.Slf4j; |
import org.apache.commons.configuration2.ex.ConfigurationException; |
import org.apache.commons.configuration2.PropertiesConfiguration; |
import org.apache.commons.jcs.JCS; |
import org.apache.commons.jcs.access.exception.CacheException; |
import org.apache.logging.log4j.LogManager; |
import org.apache.logging.log4j.Logger; |
|
|
import net.brutex.DocBuilder.DocBuilder; |
import net.brutex.mgmt.api.generator.JITCompiler; |
import net.brutex.mgmt.api.xml.AnyEntity; |
60,13 → 60,10 |
* @author Brian Rosenberger |
* |
*/ |
@Slf4j |
@WebService(targetNamespace = BrutexNamespaces.WS_XSERVICES, endpointInterface = "net.brutex.xservices.ws.OpenAirProxyService", serviceName = OpenAirProxyService.SERVICE_NAME) |
public class OpenAirProxyServiceImpl implements OpenAirProxyService { |
|
/* |
* Log4j2 Set Up |
*/ |
private final Logger logger = LogManager.getLogger(OpenAirProxyServiceImpl.class); |
|
/* |
* (non-Javadoc) |
462,7 → 459,7 |
final PropertiesConfiguration props; |
try { |
final String config = "../openair.properties"; |
logger.debug("Loading Open Air connection details from " + this.getClass().getClassLoader().getResource("/") |
log.debug("Loading Open Air connection details from " + this.getClass().getClassLoader().getResource("/") |
+ config); |
|
final URL configloc = this.getClass().getClassLoader().getResource(config); |
479,15 → 476,9 |
|
con = new OpenAirRestConnection(JCS.getInstance("OACache"), company, user, password); |
return con; |
} catch (CacheException e) { |
logger.error(e); |
} catch (CacheException | ConfigurationException | IOException e) { |
log.error(e.getMessage()); |
e.printStackTrace(); |
} catch (ConfigurationException e) { |
logger.error(e); |
e.printStackTrace(); |
} catch (IOException e) { |
logger.error(e); |
e.printStackTrace(); |
} finally { |
|
} |