Package it.eng.spagobi.services.exportrecords.proxy

Examples of it.eng.spagobi.services.exportrecords.proxy.ExportRecordsServiceProxy


   
  }
 
  private String invokeExternalService(
      ExternalServiceConfiguration serviceConfig, JSONArray records) throws RemoteException {
    ExportRecordsServiceProxy proxy = new ExportRecordsServiceProxy();
    proxy.setEndpoint(serviceConfig.getEndpoint());
    SourceBean sb = (SourceBean) ConfigSingleton.getInstance().getAttribute("QBE.EXTERNAL_SERVICES");
    int timeout = Integer.parseInt((String) sb.getAttribute("timeout"));
    proxy.setTimeout(timeout);
    String result = null;
    try {
      result = proxy.processRecords(records.toString(), serviceConfig.getOperation());
    } catch (RemoteException e) {
      if (e.detail != null && e.detail instanceof SocketTimeoutException) {
        throw new SpagoBIEngineServiceException(getActionName(), "Service invocation produced a timeout error", e);
      } else {
        throw e;
View Full Code Here

TOP

Related Classes of it.eng.spagobi.services.exportrecords.proxy.ExportRecordsServiceProxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.